Posts: 29
Threads: 0
Joined: Dec 2014
Reputation:
0
12-15-2014, 01:41 AM
(This post was last modified: 12-15-2014, 01:41 AM by qaqaq.)
I Forgot copy Tesseract-OCR folder to /AppData/Local/Tesseract-OCR lol
Posts: 129
Threads: 1
Joined: Dec 2014
12-15-2014, 02:23 AM
(This post was last modified: 12-15-2014, 02:32 AM by AtoZ.)
I tried adding more value to '$Left' on Line 21 and the script read the search values properly.
Global $Left = 45+10, $Top = 70, $Right = 660, $Bottom = 490
Alternatively, you can try make the adjustments on line 463 as not to affect other configurations.
$Read = _TesseractWinCapture($HWnD,"",0,"",1,2,($Left+10)*$x_ratio,$Top*$y_ratio,$Right*$x_ratio,$Bottom*$y_ratio,0) ;Capture screen region with gold and elixir
btw, I still wasn't able to manually set my barracks properly with the script.
Posts: 228
Threads: 7
Joined: Dec 2014
12-15-2014, 03:54 AM
(This post was last modified: 12-15-2014, 04:08 AM by GkevinOD.
Edit Reason: Fixed it thanks to qaqaq
)
I am having the same problem that qaqaq use to have, I am running the Search Function script yet it only clicks next once and fails to do anything else. I've looked at the code and it clicks next first without trying to run CheckScreen functions, so I believe that I am having some difficulties with tesseract.
Any help would be much appreciated, I want to be involved in improving the script and helping create a bot
.
EDIT: I didn't read qaqaq's more recent reply and it worked
I got it working, I copied the Tesseract-OCR that came with the bot to the location of where I installed tesseract, 'C:\Program Files (x86)\Tesseract-OCR'. I merged the folder and it worked after that.