Cannot OCR the life of PAth of Exile

Ask gaming related questions
takayo97
Posts: 43
Joined: 09 Jun 2018, 16:30

Cannot OCR the life of PAth of Exile

21 Oct 2019, 22:00

I want to write a macro which do auto flask in path of exile during battle

Here is the code to do the life numeric ocr

Code: Select all

LifeCord := [105, 811, 188, 838]
TopLeftX := LifeCord[1]
TopLeftY := LifeCord[2]
BottomRightX := LifeCord[3]
BottomRightY := LifeCord[4]


;;;; for ocr testing
!F3::
    StringRun := A_ScriptDir . "\Capture2Text\Capture2Text_CLI.exe -o output-ocr.txt --screen-rect """ . TopLeftX . " " . TopLeftY . " " . BottomRightX . " " . BottomRightY . """"
    msgbox %StringRun%
    RunWait, %StringRun%,%A_ScriptDir%, Hide, ocrPID
    Process, WaitClose, %ocrPID%

return
the output of ocr text output-ocr.txt are all rubbish chars


But if i use the capture2text gui, the life numeric ORCRed perfectly.

Return to “Gaming”

Who is online

Users browsing this forum: swagfag and 18 guests