Advertisement
AHobbyistProgrammer

Untitled

Apr 10th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ~CapsLock:: ; hit capslock while looking at the the "tap controls" screen
  2.     GetKeyState, state, capslock, t
  3.     if state = U
  4.         return
  5.     ToolTip, waiting for left click on "tap controls" screen, 150, 150
  6.     KeyWait, LButton, D
  7.     ToolTip, Running..., 150, 150
  8.     Sleep 2720
  9.     Send, {up}
  10.     Sleep 1100
  11.     while GetKeyState("Capslock", "T") = 1 ; This script will continue infinitely until scrolllock is untoggled.
  12.     {
  13.         loop, 8
  14.         {
  15.             Send {left}
  16.             Sleep 147
  17.             Send {down}
  18.             Sleep 1960
  19.             if GetKeyState("Capslock", "T") = 0
  20.             {
  21.                 ToolTip
  22.                 return
  23.             }
  24.             Send {left}
  25.             Sleep 147
  26.             Send {up}
  27.             Sleep 1965
  28.             if GetKeyState("Capslock", "T") = 0
  29.             {
  30.                 ToolTip
  31.                 return
  32.             }
  33.         }
  34.         Send {left}
  35.         Sleep 147
  36.         Send {down}
  37.         Sleep 2152
  38.         Send {right}
  39.         Sleep 2844
  40.         Send {up}
  41.         Sleep 2152
  42.         if GetKeyState("Capslock", "T") = 0
  43.         {
  44.             ToolTip
  45.             return
  46.         }
  47.     }
  48.     ToolTip
  49.     return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement