Pages (104):    1 2 3 4 5104   
HAX4DAYS   12-10-2014, 01:20 PM
#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
Antidote   12-10-2014, 01:33 PM
#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)
HAX4DAYS   12-10-2014, 01:34 PM
#23
How do i add it?
Antidote   12-10-2014, 01:47 PM
#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
HAX4DAYS   12-10-2014, 01:50 PM
#25
I have Autoit. Im going to download the file from dropbox and i will let you know how it went!
HAX4DAYS   12-11-2014, 01:40 AM
#26
It did not recognize the file Im not sure what else to do
odySSeys   12-11-2014, 04:36 AM
#27
HAX4DAYS   12-11-2014, 05:25 AM
#28
How did you get it to work? What did you click on?
odySSeys   12-11-2014, 05:53 AM
#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.
HAX4DAYS   12-11-2014, 07:49 AM
#30
I will try when I get home! Thank you so much:-)
Pages (104):    1 2 3 4 5104   
  
Users browsing this thread: 3 Guest(s)
Konloch Software - Bytecode Viewer - Reverse Engineering Forum
Copyright © 2014-2025 The Bytecode Club. Powered By MyBB.
CC0 Unless Specified Otherwise.