Advertisement
Angst

GW2 AHK No Windows/Capslock

Jun 7th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; To have this auto-run when your pc starts, place the file at: %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
  2.  
  3. ;Remove the "#IfWinActive Guild Wars 2" line to enable the script for All programs
  4. #IfWinActive Guild Wars 2
  5. ;Disable Windows Key in GW2
  6. *LWin::
  7. *RWin::
  8.     Send {}                     ;Sends no keypress info
  9.     return                      ;Script ends here
  10.  
  11. ;Disable Capslock in GW2
  12. *Capslock::
  13.     if GetKeyState("Capslock", "T") {   ;Checks if Capslock is togged On
  14.         Send {Blind}{Capslock}          ;Allows turning Off Capslock if it is already on.
  15.     }
  16.     Send {}                             ;Sends no keypress info
  17.     return                              ;Script ends here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement