-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from TheBestPessimist/ahk_2
Upgrade to Autohotkey 2
- Loading branch information
Showing
58 changed files
with
4,126 additions
and
959 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.idea/ | ||
/Private.ahk | ||
/AutoHotkey_2.0.0/Private.ahk |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,16 @@ | ||
; There is no need for a standard ahk auto-execute area anymore because of this method. | ||
; This method is called automatically when the static variable autoExecute is instantiated, | ||
; and since it's a static, it will only be instantiated once! | ||
; | ||
; Idea provided by @nnnik#6686 on the AHK Discord Server: https://discord.gg/s3Fqygv | ||
CapsLockToggleAutoExecute() | ||
{ | ||
static autoExecute := CapsLockToggleAutoExecute() | ||
#Include lib/Tippy.ahk | ||
|
||
; Every second enforce the correct CapsLock state | ||
SetTimer, enforceCapsLockState, 1000 | ||
SetCapsLockState("AlwaysOff") | ||
|
||
; Sometimes i may want to use caps. This is a toggle to control that. | ||
global CapsLockState := "off" | ||
} | ||
|
||
; disable normal CapsLock usage | ||
CapsLock::return | ||
|
||
enforceCapsLockState() | ||
{ | ||
global CapsLockState | ||
|
||
if (CapsLockState = "on") | ||
{ | ||
SetCapsLockState On | ||
Tippy("CapsLock is: ON") | ||
} | ||
else if(CapsLockState = "off") | ||
{ | ||
SetCapsLockState Off | ||
} | ||
} | ||
|
||
|
||
CapsLock & Alt:: | ||
ToggleCapsLockState() | ||
{ | ||
Critical | ||
global CapsLockState | ||
|
||
if (CapsLockState = "on") | ||
{ | ||
CapsLockState := "off" | ||
Tippy("CapsLock is: off") | ||
CapsLock & Alt:: { | ||
static state := 0 | ||
state := !state | ||
if state { | ||
SetCapsLockState("AlwaysOn") | ||
Tippy("CapsLock is: ON", 99999999999999, 15) | ||
} | ||
else if(CapsLockState = "off") | ||
{ | ||
CapsLockState := "on" | ||
else { | ||
SetCapsLockState("AlwaysOff") | ||
Tippy("CapsLock is: off",, 15) | ||
} | ||
enforceCapsLockState() | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
start "" "%~dp0AutoHotkey32.exe" "%~dp0UX\ui-setup.ahk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
[NewScriptTemplate] | ||
Description = Just #Requires v2.0 | ||
*/ | ||
#Requires AutoHotkey v2.0 | ||
|
Oops, something went wrong.