Thread Rating:
  • 7 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Developing Bot
#21
(12-10-2014, 08:46 AM)Antidote Wrote:  Since it's quite troublesome to set up everything right, I decided to move everything into one folder to make things easier.
Inside this folder is Tesseract-OCR portable with traineddata included, edited Tesseract.au3 file and Test.au3 script I made to check Tesseract's accuracy.
I personally tested with all 3 resolutions and it works fine. You don't have to install anything. Just open Bluestacks, stay at your main village and open the script. It will begin searching opponents and display gold & elixir on screen. Feel free to tweak the screen region in the script for optimal reading (I'm still experimenting myself) and let me know how it works for you guy Smile
[Image: qJckRZL.png]
https://mega.co.nz/#!Y0NBWbjK!l0m74jAce3...kSQRzjC_OQ
script only: http://pastebin.com/2gNxVSK1



I click on Test.exe and it does what i said form other post
#22
Can you compile and run this script from the same folder? It just display raw output
Code:
#include "Tesseract.au3"
#include <TrayConstants.au3>

$Title = "BlueStacks App Player"
$Full = WinGetTitle ($Title)
$HWnD = WinGetHandle ($Full)
WinActivate ($HWnD)

Global $Left = 45
Global $Top = 70
Global $Right = 660
Global $Bottom = 490
Global $BSsize = WinGetClientSize($hWnd)
Global $x_ratio = $BSsize[0]/800, $y_ratio = $BSsize[1]/600

$Read = _TesseractWinCapture($HWnD,"",0,"",1,2,$Left*$x_ratio,$Top*$y_ratio,$Right*$x_ratio,$Bottom*$y_ratio,0)
MsgBox(0,"Read",$Read)
#23
How do i add it?
#24
You need autoit, it's what we've been coding on. Download from here: https://www.autoitscript.com/site/autoit/downloads/
Or download the one I compile for you here: https://www.dropbox.com/s/tc85380ldfvjcl...d.exe?dl=0
#25
I have Autoit. Im going to download the file from dropbox and i will let you know how it went!
#26
It did not recognize the file Im not sure what else to do
#27
#28
How did you get it to work? What did you click on?
#29
(12-11-2014, 05:25 AM)HAX4DAYS Wrote:  How did you get it to work? What did you click on?
I'm guessing the different between you and me is the Tesseract installer (https://code.google.com/p/tesseract-ocr/)
I have tried:
1. Installed Tesseract installer.
2. Placed the Tesseract.au3 into autoit3/include folder
3. Run test.exe (from the packaged file)
4. It work with minor error.

1. Uninstalled Tesseract installer.
2. Placed the Tesseract.au3 into autoit3/include folder
3. Run test.exe (from the packaged file)
4. It just pause at the attack screen.

Give a try, not sure if is able to help you.
#30
I will try when I get home! Thank you so much:-)
 


Forum Jump:


Users browsing this thread: 12 Guest(s)

About The Bytecode Club

We're a community forum focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website