Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. HotKeySet("{F4}", "Main")
  2. HotKeySet("{Pause}", "Terminate")
  3. AutoItSetOption("WinTitleMatchMode",3)
  4. Global $State
  5.  
  6. Func Main()
  7. $State = NOT $State
  8. If $State Then
  9. ToolTip("Bot: ON",640,400)
  10. Else
  11. ToolTip("Bot: OFF",640,400)
  12. EndIf
  13. While $State
  14. ;If WinActive("NosTale") Then
  15. ControlSend("NosTale","","","{Space}")
  16. ;ControlSend("NosTale","","","{Backspace}")
  17. ControlSend("NosTale","","","{Space}")
  18. ;ControlSend("NosTale","","","{Backspace}")
  19. ControlSend("NosTale","","","{Escape}")
  20. Sleep(250)
  21. ;EndIf
  22. WEnd
  23. EndFunc
  24.  
  25. While 1
  26. Sleep(1000)
  27. WEnd
  28.  
  29. Func Terminate()
  30. Exit 0
  31. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement