sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #19154
Re: [Question #232183]: [How To] set variable value from OCR numerics
Question #232183 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232183
Status: Answered => Open
Phillip Kelly is still having a problem:
thanks Raiman that helped alot. I managed to store the text in a
variable by using:
balance = find().text()
which works fine except for one little detail. the resulting text includes a 3 character prefix which I dont want such as USD3000.00
How can I truncate this text to remove the "USD" and leave me with only the numeric value ?
In addition, How can I ensure the resulting text is actually numeric such that it can be manipulated for calculations using simple math ?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.