← 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: Answered => Open

Phillip Kelly is still having a problem:
I understand your concept but the value of balance is unicode and I need it to be integer. 
I know I should be able to convert by:-

balance = int(balance) #now it is numeric integer

but this doesnt work by itsself.

Unless I need to do something like include the command in a function
like :-

in this example http://stackoverflow.com/questions/6393635/valueerror-
invalid-literal-for-int-with-base-10

I'm really not sure how to resolve it.

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