Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Misc.au3>
- #include <MsgBoxConstants.au3>
- #include <GUIConstants.au3>
- HotKeySet("{NUMPADSUB}", "TogglePause")
- HotKeySet("=","_exit")
- WinSetState("[CLASS:SciTEWindow]","",@SW_MINIMIZE)
- $on = 1
- Global $Paused
- Func TogglePause()
- $Paused = NOT $Paused
- While $Paused
- sleep(200)
- ToolTip('Color Find is "Paused press Minus to resume"',1,30)
- WEnd
- ToolTip("")
- EndFunc
- ;pants without hovering 0x193232
- ;pants while hovering 0x193232
- Func _testpants()
- $coord = PixelSearch(1,435,644, 565,0x193232,1,10)
- If Not @error Then
- $coord = PixelSearch(1,435,644, 565,0x3C6065,1,10)
- if Not @error Then
- _clickfastfinish()
- EndIf
- EndIf
- EndFunc
- While $on = 1
- ;$coord = PixelSearch(1,435,644, 565,0x54B098,1,3)
- ;If Not @error Then
- ; ;_clickfastfinish()
- ; EndIf
- $coord = PixelSearch(1,435,644, 565,0x54B098,1,10)
- If Not @error Then
- $coord = PixelSearch(1,381,1206,394,0x00FFBB,1,10)
- if Not @error Then
- _clickfastfinish()
- EndIf
- EndIf
- $coord = PixelSearch(670, 388,1206, 667,0x54B098,1,10)
- If Not @error Then
- $coord = PixelSearch(1,381,1206,394,0x00FFBB,1,10)
- if Not @error Then
- _clickfastfinish()
- EndIf
- EndIf
- $coord = PixelSearch(1,435,644, 565,0x349F82,1,10)
- If Not @error Then
- $coord = PixelSearch(1,381,1206,394,0x00FFBB,1,10)
- if Not @error Then
- _clickfastfinish()
- EndIf
- EndIf
- $coord = PixelSearch(670,388,1206, 667,0x349F82,1,10)
- If Not @error Then
- $coord = PixelSearch(1,381,1206,394,0x00FFBB,1,10)
- if Not @error Then
- _clickfastfinish()
- EndIf
- EndIf
- ;small inbetween box
- $coord = PixelSearch(435,565,522,746,0x349F82,1,10)
- If Not @error Then
- $coord = PixelSearch(1,381,1206,394,0x00FFBB,1,10)
- if Not @error Then
- _clickfastfinish()
- EndIf
- EndIf
- $coord = PixelSearch(435,565,522,746,0x349F82,1,10)
- If Not @error Then
- $coord = PixelSearch(1,381,1206,394,0x00FFBB,1,10)
- if Not @error Then
- _clickfastfinish()
- EndIf
- EndIf
- ;_testpants()
- WEnd
- ;435,565,522,746
- Func _clickfastfinish()
- ;MouseClick("left",$bPos[0],$bPos[1],3,1)
- MouseClick("left",$coord[0],$coord[1],2,1)
- Sleep(25)
- ;MsgBox("","","clicked")
- EndFunc
- func _exit()
- Exit
- endfunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement