congdantoancau

Capslock Windows Switcher

Feb 18th, 2020
822
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; CAPSLOCK SWITCH WINDOWS
  2. ; REmember to initial variable [lock] in the very first of the script
  3. Capslock::
  4.     lock := !lock
  5.     if (lock)
  6.     {
  7.         Send, !{esc}
  8.     }
  9.     else
  10.     {
  11.         Send, !+{esc}
  12.     }
  13.     WinActivate, a
  14. return
RAW Paste Data