Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #include <GUIConstantsEx.au3>
  2. #include <AVIConstants.au3>
  3. #include <TreeViewConstants.au3>
  4.  
  5. HotKeySet("{F8}", "StopProg")
  6. HotKeySet("{F7}", "StartProg")
  7.  
  8. While 1
  9. Sleep(100)
  10. Wend
  11.  
  12. Func StartProg()
  13.  
  14. Do
  15. $waitpixel=PixelSearch ( 655, 405, 695, 460, $WaitPixelColor, 8, 4 )
  16. Until Not @error
  17.  
  18. While PixelGetColor(664,615,0x00FF00)
  19.  
  20. $kolor = PixelGetColor(1074,205)
  21. If $kolor = 0xEB412E Then
  22. $i=2
  23. MouseClick("left" ,650,463,1,0)
  24. sleep(2000)
  25. Do
  26. $waitpixel=PixelSearch ( 655, 405, 695, 460, $WaitPixelColor, 8, 4 )
  27. Until Not @error
  28. If PixelGetColor(1074,205,0xEB412E) Then
  29. MouseClick("left", 650,463,1,0)
  30. ElseIf PixelGetColor(664,615,0x00FF00) Then
  31. MouseClick("left", 717,503,$i,0)
  32. $i =* 2
  33.  
  34. EndIf
  35. WEnd
  36.  
  37. While PixelGetColor(664,615,0x00FF00)
  38. $kolor = PixelGetColor(1074,205)
  39. If $kolor = 0x333333 Then
  40. MouseClick("left" ,717,503,1,0)
  41. $i+=1
  42. EndIf
  43. WEnd
  44. EndFunc
  45.  
  46.  
  47. Func StopProg()
  48. Exit 0
  49. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement