Search found 3 matches

by jesseleite
16 Jul 2018, 16:34
Forum: Ask For Help
Topic: Multiple scripts trying to set same hotkey?
Replies: 3
Views: 753

Re: Multiple scripts trying to set same hotkey?

Figured it out! Now I have this in my main autohotkey script: #include includes/caps-hjkl-or-esc.ahk OverrideCapsLock() { If WinActive("Brood War") return "." If WinActive("Age of Empires") return "." } And this is my caps-hjkl-or-esc.ahk script: #NoEnv SendMode Input ; Disable default CapsLock func...
by jesseleite
13 Jul 2018, 14:45
Forum: Ask For Help
Topic: Multiple scripts trying to set same hotkey?
Replies: 3
Views: 753

Re: Multiple scripts trying to set same hotkey?

Thanks for reply! Yeah I see what you are doing in the second example, but trying to keep them separate files if I can so that I can share the hjkl functionality on github, and have my game overrides a more local/personal thing. The first example doesn't seem to work. If I reload the first caps+hjkl...
by jesseleite
13 Jul 2018, 13:03
Forum: Ask For Help
Topic: Multiple scripts trying to set same hotkey?
Replies: 3
Views: 753

Multiple scripts trying to set same hotkey?

So I have these two scripts caps-hjkl.ahk , and game-specific-caps-mappings.ahk . The first script there works as expected: ; Disable default CapsLock functionality SetCapsLockState, AlwaysOff ; Post Esc if pressed alone CapsLock:: KeyWait, CapsLock If (A_PriorKey="CapsLock") Send {Esc} return ; Map...

Go to advanced search