Code: Select all
#if getkeystate("capslock", "p")
^a:: ;capslock + Ctrl + A
Code: Select all
SetCapsLockState, AlwaysOff
Code: Select all
#if getkeystate("capslock", "p")
^a:: ;capslock + Ctrl + A
Code: Select all
SetCapsLockState, AlwaysOff
Code: Select all
SetCapsLockState, AlwaysOff
Code: Select all
; use the hotkey with Capslock & 1
#IfWinActive ahk_class XLMAIN
1::
If GetKeyState("CapsLock", "P") {
Send, This is an example.
}
Return
Code: Select all
; use the hotkey with Capslock & 1 (triggers when Capslock is released)
#IfWinActive ahk_class XLMAIN
CapsLock & 1::
Keywait, Capslock
SetCapslockState, Off
Send, This is an example.
Return
Code: Select all
#If GetKeyState("CapsLock", "P")
a::SendInput, {LEFT}
d::SendInput, {RIGHT}
w::SendInput, {UP}
#If
Code: Select all
; This snippet should be at the end of the script.
*CapsLock UP:: SetCapsLockState, Off
Code: Select all
#If GetKeyState("CapsLock", "P")
a::SendInput, {LEFT}
d::SendInput, {RIGHT}
w::SendInput, {UP}
s::SendInput, {DOWN}
#If
Return
; This snippet should be at the end of the script.
*CapsLock UP:: SetCapsLockState, Off
Users browsing this forum: mesutakcan, mexican scientist, mikeyww and 132 guests