Quote:
Originally Posted by Distortion69
so your asking me to post my work ? lol
if you even knew about what i do wit the bot you should know that it needs focus to detect the images ... :rtfm:
|
idk how u do it but with pixelsearch it works i jusst need to set the focus closer couz atm ya its just pulls :P if th ebar is blue ^^
but it works in background if i finde 20 more minutis today i will finish and add all commands
Code:
AutoItSetOption("WinTitleMatchMode", 4)
Global $Paused
HotKeySet("{F2}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
$windowname="Dekaron"
$handle = WinGetHandle($windowname, "")
If @error Then
MsgBox(4096, "Error", "Fenster konnte nicht gefunden werden")
Else
while True
$Pull = PixelSearch( 243, 155, 446, 168, 0x4080DF, 15)
if IsArray($Pull) = True Then
ControlSend($windowname,'','',"{SPACE down}")
Else
ControlSend($windowname,'','',"{SPACE up}")
EndIf
if IsArray($Pull) = False Then
ControlSend($windowname,'','',"L")
sleep(100)
ControlClick ($windowname, "", 0,"left","1",633, 288)
sleep(100)
EndIf
WEnd
EndIf
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
WEnd
EndFunc
Func Terminate()
Exit 0
EndFunc
its working now and 100% background, ofc its dirty and without GUI ^^
but i get the fishies and can do other stuff