Pulover OCR changes StartX, StartY EndX, EndY to be [Start X, StartY, Length, Height] in AHK.
Ex. OCR 864, 245, 948, 271 >>> OCR([864, 245, 84, 26], "eng")
Problem comes when using variables, it will put EndX and EndY as is which becomes wrong.
Ex.
StartX := 700 (Actually, StartX came from an image search)
EndX := StartX + 200
OCR %StartX%, 122, %EndX%, 142 >>> OCRText := OCR([StartX, 122, EndX, 20], "eng")
so EndX becomes length. That causes OCR to perform a region 700,122 to 1600,142 while we expect it to search only from 700,122 to 900,142
It is somehow works in Pulover but wrong when translate to AHK or EXE.
Pulover OCR changes StartX, StartY EndX, EndY to be [Start X, StartY, Length, Height] in AHK. Ex. OCR 864, 245, 948, 271 >>> OCR([864, 245, 84, 26], "eng")
Problem comes when using variables, it will put EndX and EndY as is which becomes wrong. Ex. StartX := 700 (Actually, StartX came from an image search) EndX := StartX + 200 OCR %StartX%, 122, %EndX%, 142 >>> OCRText := OCR([StartX, 122, EndX, 20], "eng") so EndX becomes length. That causes OCR to perform a region 700,122 to 1600,142 while we expect it to search only from 700,122 to 900,142
It is somehow works in Pulover but wrong when translate to AHK or EXE.