(12-24-2014, 09:32 PM)Antidote Wrote: @mikypark: yes I know this a known bug, the bot fails to read values once in a while (5% in my experience) thus it was stuck in the check loop. Have you tried the latest one on 1st page? What I did is implement a walk around such that it will skip to next base if fails to read value for 15 seconds. We need to wait for GkevinOD's fix for this. But for now, I figured a functional bot with 99% accuracy is better than 100% accuracy with possible error.
Func CheckSearch()
Sleep(2000)
$GoldCheck = ""
$i = 0
While $GoldCheck = ""
$i += 1
If $i = 50 Then
If CheckScreenChange(0.25,0.25,0.75,0.75,500) Then
ControlClick ($HWnD, "","", "left", "1", 715*$x_ratio, 405*$y_ratio) ;Click Next
$i = 0
(12-24-2014, 10:02 PM)Antidote Wrote: Maybe 10 seconds is a bit too soon.. If you don't mind editing inside the code, just go to the code and looks for this part
Code:Func CheckSearch()
Sleep(2000)
$GoldCheck = ""
$i = 0
While $GoldCheck = ""
$i += 1
If $i = 50 Then
If CheckScreenChange(0.25,0.25,0.75,0.75,500) Then
ControlClick ($HWnD, "","", "left", "1", 715*$x_ratio, 405*$y_ratio) ;Click Next
$i = 0
Change "If $i = 50" to "If $i = 75" (it will wait for 15 seconds instead of 10). It'd be great if you can update me on how it does so I can update it in the main code for everyone
Func CheckSearch()
Sleep(2000)
$GoldCheck = ""
$i = 0
While $GoldCheck = ""
$i += 1
If $i = 75 Then
If CheckScreenChange(0.25,0.25,0.75,0.75,500) Then
ControlClick ($HWnD, "","", "left", "1", 715*$x_ratio, 405*$y_ratio) ;Click Next
$i = 0