Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5. Gui,+AlwaysOnTop
  6.  
  7. Gui, Show , w200 h210,
  8.  
  9. GUI, Add, Button, x20 y25 w104 h25 , Yes
  10. GUI, Add, Button, x20 y50 w104 h25 , Disconnect
  11. GUI, Add, Button, x20 y75 w104 h25 , Parked
  12. GUI, Add, Button, x20 y100 w104 h25 , wrongsite
  13.  
  14. return
  15.  
  16. ButtonYes:
  17. WinActivate, Hybrid - Google Chrome
  18. Sleep 25
  19. Send {Tab 2}
  20. Send {Space}
  21. Send {Tab 1}
  22. Send {Space}
  23. Send {Tab 2}
  24. Send {Enter}
  25. Return
  26.  
  27. ButtonDisconnect:
  28. WinActivate, Hybrid - Google Chrome
  29. Sleep 25
  30. Send {Tab 2}
  31. Send {Down 1}
  32. Send {Tab 1}
  33. Send {Down 3}
  34. Send {Tab 2}
  35. Send {Enter}
  36. Return
  37.  
  38. ButtonParked:
  39. Sleep 25
  40. Send {Tab 2}
  41. Send {Down 2}
  42. Send {Tab 1}
  43. Send {Down 1}
  44. Send {Tab 2}
  45. Return
  46.  
  47. Buttonwrongsite:
  48. WinActivate, Hybrid - Google Chrome
  49. Sleep 25
  50. Send {Tab 2}
  51. Send {Space}
  52. Send {Tab 1}
  53. Send {Down 1}
  54. Send {Space}
  55. Send {Tab 2}
  56. Send {Enter}
  57. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement