Vikshay

GUI Help

Nov 15th, 2021
1,812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv
  2. #SingleInstance, Force
  3. SendMode Input
  4. SetWorkingDir, %A_ScriptDir%
  5. SetTimer, automovemouse
  6.  
  7. ; ---------- Gui Layout
  8. Gui, Add, GroupBox, x2 y9 w370 h50 , Shortcuts
  9. Gui, Add, Button, x12 y29 w60 h20 , Amgen
  10. Gui, Add, Button, x82 y29 w60 h20 , BI
  11. Gui, Add, Button, x152 y29 w60 h20 , Eli Lilly
  12. Gui, Add, Button, x222 y29 w60 h20 gshellShortcut, Shell
  13. Gui, Add, Button, x292 y29 w60 h20 , Siemens
  14.  
  15. Gui, Add, GroupBox, x382 y9 w200 h50 , Functions
  16. Gui, Add, CheckBox, x392 y29 w110 h20 gautomovemouse, Auto Move Mouse
  17. Gui, Add, Button, x512 y29 w60 h20 , Dockets
  18.  
  19. Gui, +AlwaysOnTop
  20. Gui, Show, w600 h400, The Helping Hand
  21. Return
  22.  
  23. ; ---------- Labels
  24. shellShortcut:
  25.    Run, https://google.ca/
  26. Return
  27.  
  28. automovemouse:
  29.    If (A_TimeIdle > 3000){
  30.         MouseMove, 1, 1,, R
  31.         MouseMove, -1, 9,, R
  32.     }
  33. Return
  34.  
  35. ; ---------- Functions
  36.  
  37. Insert::Suspend
  38. Esc::Gui, Hide
  39. ^+z::Gui, Show
Advertisement
Add Comment
Please, Sign In to add comment