Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; v1.3
- setCapsLockState, AlwaysOff
- ; disable the normal function of capslock
- ; ~ passthough
- ; $ ignore trigger by ahk script
- ;GuildWars2
- ;jump-dodge
- ~XButton1::
- WinGetTitle, id, A
- if (id=="Guild Wars 2"){
- if GetKeyState("CapsLock","p")
- Send, {Space}
- }
- return
- $Numpad1::
- WinGetTitle, id, A
- if (id=="Guild Wars 2"){
- if GetKeyState("CapsLock","p")
- Send, {Numpad5}
- else
- Send, {Numpad1}
- }
- else
- Send, {Numpad1}
- return
- $Numpad3::
- WinGetTitle, id, A
- if (id=="Guild Wars 2"){
- if GetKeyState("CapsLock","p")
- Send, {Numpad6}
- else
- Send, {Numpad3}
- }
- else
- Send, {Numpad3}
- return
- ;general stuff
- ;fast click
- x := 25
- $~LButton::
- loop,
- {
- if GetKeyState("LButton","p") and GetKeyState("CapsLock","p")
- Send, {Click}
- else
- break
- sleep, x
- }
- return
- ;media functions
- $p::
- if GetKeyState("CapsLock","p")
- Send, {Media_Play_Pause}
- else
- Send, p
- return
- $Up::
- if GetKeyState("CapsLock","p"){
- Send, {Volume_Up}
- }
- else
- Send, {Up}
- return
- $Down::
- if GetKeyState("CapsLock","p"){
- Send, {Volume_Down}
- }
- else
- Send, {Down}
- return
- $Left::
- if GetKeyState("CapsLock","p"){
- Send, {Media_Prev}
- }
- else
- Send, {Left}
- return
- $Right::
- if GetKeyState("CapsLock","p")
- Send, {Media_Next}
- else
- Send, {Right}
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement