Advertisement
congdantoancau

Capslock toggle switch MRU

Oct 17th, 2018
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #If getKeystate("ScrollLock", "T")
  2.     PgUp:: wheelUp
  3.     PgDn:: wheelDown
  4.    
  5.     CapsLock::
  6.         On := !On ; Switcher state
  7.         if On
  8.             Send !{esc}
  9.         else
  10.             Send !+{esc}
  11.         Winactivate, a
  12.     /*
  13.         Send, !{Tab}
  14.         Sleep, 40
  15.         WinGetTitle, title, a
  16.         if (Strlen(title) == 0)
  17.             Send, !{Tab}
  18.         ; Release the alt key
  19.         if GetKeyState("Alt", "P")
  20.             Send, {Alt up}
  21.     */
  22.     return
  23. #If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement