← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #232183]: [How To] set variable value from OCR numerics

 

Question #232183 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232183

    Status: Needs information => Open

Phillip Kelly gave more information on the question:
The sorted match code is from the manual listed under the fandAll() statement
http://doc.sikuli.org/region.html#extracting-text-from-a-region 

The code overcomes the problem of failed fina() searches, and also
allowed a variable to be passed and returned such as banker or player.
These banker or player variables return the screen location to place the
bet which is wait I mean by screen locale.

I might not have the code exactly right but it works great. I tried
changing it several times to things like :-

banker = getLastMatch() #/ didnt work

exists(banker) #/ this is my failsafe to prove the sorted match returned
a value

banker = find(banker_img.png) #/ assigns the screen locale to banker and
returns it

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.