Forum Discussion

Bjorn_Kruuse-Me's avatar
Bjorn_Kruuse-Me
Occasional Contributor
11 years ago

Can't get OCR to do what I want

Hi all,



I have made this function:




function GetNormalStartDelay(){


 var normalStartObj =  Aliases.WinACP600.dlgWinACP6001972.page32770.Edit;    


 var normalStartPicture = normalStartObj.Picture(50,10,50,25);


 Log.Picture(normalStartPicture);


 var OcrObject = OCR.CreateObject(normalStartPicture);


 


 Log.Message(OcrObject.GetText());


   


}





The picture I take looks like this:





The text that is returned is: "Z .;" and not 2 sec.



Any suggestions as to what I am doing wrong?

2 Replies

  • googleid_105613's avatar
    googleid_105613
    Occasional Contributor
    Every time I've had to do OCR, I've had to puzzle it out using the Font properties.  Try specifying the font type and size, and see what happens.