Advertisement
lightningleaf

Case sensitivity in hotkeys

Jun 13th, 2016
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance Force
  2.  
  3. f() {
  4.     MsgBox test
  5. }
  6.  
  7. G() {
  8.     MsgBox TEST
  9. }
  10.  
  11. #if ! (GetKeyState("CapsLock", "T") ^ GetKeyState("Shift", "P")) ; if neither or both capslock & shift are on (i.e., lower case typing)
  12.  
  13. +a::f()
  14.    
  15. a::f()
  16.  
  17. #if
  18.  
  19. #if (GetKeyState("CapsLock", "T") ^ GetKeyState("Shift", "P")) ; if either is on but not both
  20.  
  21. +a::G()
  22.    
  23. a::G()
  24.  
  25. #if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement