Advertisement
Guest User

afk_pet

a guest
Mar 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.63 KB | None | 0 0
  1. HotKeySet("!{ESC}", "stopscript")
  2. HotKeySet("^{PAUSE}", "stopscript")
  3. HotKeySet("{F1}", "f1")
  4. HotKeySet("{F8}", "f8")
  5.  
  6.  
  7. WinWaitActive("World of Warcraft")
  8. While (1)
  9. sleep(100)
  10. WEnd
  11.  
  12. Func f1()
  13. ; if (PixelGetColor(963, 944)=0x7B3C24) then
  14. While (1)
  15.     if (PixelGetColor(838, 39)<>0xFFD100) then
  16.     ControlSend  ("World of Warcraft", "" ,"", "1")
  17.     Sleep (Random(500, 2000))
  18.     ; MouseClick("Left", Random(1000,1200), Random(500, 800))
  19.     ; Sleep (Random(1000, 2000))
  20.     endif
  21. WEnd
  22. EndFunc
  23.  
  24. Func f8()
  25.     Sleep (5*60*1000)
  26. EndFunc
  27.  
  28. Func stopscript()
  29. msgBox(4096,"Exit", "CTRL + BREAK pressed." & @CR & @CR & "Exit.")
  30. Exit
  31. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement