Posts: 129
Threads: 1
Joined: Dec 2014
Posts: 129
Threads: 1
Joined: Dec 2014
12-18-2014, 04:39 PM
(This post was last modified: 12-18-2014, 04:57 PM by AtoZ.)
Posts: 129
Threads: 1
Joined: Dec 2014
12-18-2014, 05:56 PM
(This post was last modified: 12-18-2014, 06:16 PM by AtoZ.)
Posts: 429
Threads: 117
Joined: Jul 2014
Reputation:
18
Amazing team work, glad to see everyone working towards one goal.
Posts: 129
Threads: 1
Joined: Dec 2014
(12-18-2014, 06:39 PM)Antidote Wrote: The pixelsearch is just looking for a specific shade of red from the End Battle button so it knows when to start reading. I cannot reproduce your error but I do notice sometimes the bot cannot detect a specific shade when battle finish to click return home. For CheckSearch you can use this old function instead.
Code:
Func CheckSearch()
Local $Check = ""
While $Check = ""
$Check = StringStripWS(_TesseractWinCapture($HWnD,"",0,"",1,2,$Left*$x_ratio,$Top*$y_ratio,$Right*$x_ratio,$Bottom*$y_ratio,0), 8)
Sleep(500)
WEnd
EndFunc
0x0D355B = Midnight blue?
Posts: 157
Threads: 7
Joined: Dec 2014
Reputation:
29
shit I just look up the hex. It's really midnight blue.. I think my pixel get color script fails to get the correct co-ord. I just printscreen and check again in photoshop. Can you change the value to 0xc00000? I use replace color and it's indeed the only spot on the screen with this color value. I will try to do the same to return home.