Re: [Sikuli-driver] [Question #271443]: How can I input a number and accept it as an integer in sikuli?

2015-09-17 Thread RaiMan
Question #271443 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271443 Status: Open => Answered RaiMan proposed the following answer: ok, the principal approach is ok. the return value of input() is a string. Python has a feature, to convert a string into a number: num =

Re: [Sikuli-driver] [Question #271443]: How can I input a number and accept it as an integer in sikuli?

2015-09-17 Thread RaiMan
Question #271443 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271443 RaiMan proposed the following answer: ok, I just realized that masuo already mentioned the int() function and I have to admit, that I was not aware of isdecimal(). But since this only works on unicode

Re: [Sikuli-driver] [Question #271443]: How can I input a number and accept it as an integer in sikuli?

2015-09-16 Thread masuo
Question #271443 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271443 masuo proposed the following answer: If you want to convert a string to an integer , use the function (for example, isdecimal()). errmsg = "" while True: msg = "Input a number\n" +

Re: [Sikuli-driver] [Question #271443]: How can I input a number and accept it as an integer in sikuli?

2015-09-16 Thread masuo
Question #271443 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271443 masuo proposed the following answer: sorry: If you want to evaluate the input value, use the function (for example, isdecimal()). If you want to convert a string to an integer, use the function (for

Re: [Sikuli-driver] [Question #271443]: How can I input a number and accept it as an integer in sikuli?

2015-09-16 Thread Jenelle
Question #271443 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271443 Status: Answered => Open Jenelle is still having a problem: x= input("Input 1st Number:") y= input("Input 2nd Number:") op= input("choose operation to be used: + - * /") if x == "1":

Re: [Sikuli-driver] [Question #271443]: How can I input a number and accept it as an integer in sikuli?

2015-09-15 Thread Eugene S
Question #271443 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271443 Status: Open => Answered Eugene S proposed the following answer: what's wrong with the solution I offered? -- You received this question notification because your team Sikuli Drivers is an answer

[Sikuli-driver] [Question #271443]: How can I input a number and accept it as an integer in sikuli?

2015-09-15 Thread Jenelle
New question #271443 on Sikuli: https://answers.launchpad.net/sikuli/+question/271443 x = input("Input a number") I want to let x accept an integer, not a string. please help me -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #271443]: How can I input a number and accept it as an integer in sikuli?

2015-09-15 Thread Eugene S
Question #271443 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271443 Status: Open => Answered Eugene S proposed the following answer: this has nothing to do with Sikuli but... input doesn't have the ability to check the input type. You will have to process it yourself.

Re: [Sikuli-driver] [Question #271443]: How can I input a number and accept it as an integer in sikuli?

2015-09-15 Thread Jenelle
Question #271443 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/271443 Jenelle posted a new comment: I need a number inputted by the user to automate in my calculator Do you have any idea how to do it? I want to make an automation where sikuli will ask the user to give two(2)