Advertisement
MordiJC

Untitled

Nov 1st, 2024
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.13 KB | None | 0 0
  1. Opt("MouseCoordMode", 0)
  2. Opt("PixelCoordMode", 0)
  3. Opt("SendKeyDelay", 0)
  4. Opt("SendKeyDownDelay", 0)
  5.  
  6. HotKeySet("{F2}", "Terminate")
  7. HotKeySet("{F3}", "DoIt")
  8.  
  9. Func Terminate()
  10.     Exit
  11. EndFunc
  12.  
  13. Func DoIt()
  14.     Local $vinitialColor
  15.     Local $vcurrentColor
  16.     AutoItSetOption ( "MouseClickDelay" , 22 )
  17.  
  18.     $vinitialColor = PixelGetColor(1050, 736)
  19.     While 1
  20.         $vcurrentColor = PixelGetColor(1050, 736 )
  21.         If $vcurrentColor <> $vinitialColor Then
  22.             Sleep(10)
  23.             MouseClick("LEFT")
  24.             ExitLoop
  25.         EndIf
  26.     WEnd
  27.     Sleep(2500)
  28.  
  29.     $vinitialColor = PixelGetColor(1050, 734)
  30.     While 1
  31.         $vcurrentColor = PixelGetColor(1050, 734 )
  32.         If $vcurrentColor <> $vinitialColor Then
  33.             Sleep(10)
  34.             MouseClick("LEFT")
  35.             ExitLoop
  36.         EndIf
  37.     WEnd
  38.     Sleep(2500)
  39.  
  40.     $vinitialColor = PixelGetColor(1050, 658)
  41.     While 1
  42.         $vcurrentColor = PixelGetColor(1050, 658 )
  43.         If $vcurrentColor <> $vinitialColor Then
  44.             Sleep(10)
  45.             MouseClick("LEFT")
  46.             ExitLoop
  47.         EndIf
  48.     WEnd
  49. EndFunc
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement