Re: [Sikuli-driver] [Question #242258]: visual calculator button need help

2014-01-15 Thread Ninja Mustang
Question #242258 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242258 Description changed to: hello, I have a myfile.txt containing some values, example: pricequantity 1.99 2 3.49 20 0.99 15 I'd like to open the calculator from Windows. So

[Sikuli-driver] [Question #242258]: visual calculator button need help

2014-01-15 Thread Ninja Mustang
New question #242258 on Sikuli: https://answers.launchpad.net/sikuli/+question/242258 hello, I have a myfile.txt containing some values, example: pricequantity 1.99 2 3.49 20 0.99 15 I'd like to open the calculator from Windows. So the keypads are there. I'd

Re: [Sikuli-driver] [Question #242258]: visual calculator button need help

2014-01-15 Thread Ninja Mustang
Question #242258 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242258 Description changed to: hello, I'm trying to simulate a calculator by adding a bunch of numbers from a file. I have a myfile.txt containing some values, example: pricequantity 1.99 2 3.49

Re: [Sikuli-driver] [Question #242258]: visual calculator button need help

2014-01-15 Thread Ninja Mustang
Question #242258 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242258 Ninja Mustang posted a new comment: I like your solution! Thanks -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli.

Re: [Sikuli-driver] [Question #242258]: visual calculator button need help

2014-01-15 Thread Ninja Mustang
Question #242258 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242258 Ninja Mustang confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer

Re: [Sikuli-driver] [Question #242258]: visual calculator button need help

2014-01-15 Thread RaiMan
Question #242258 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242258 Status: Open = Answered RaiMan proposed the following answer: I do not understand, why this complexity is needed. keys = (img0, img1, ..., img9) # a list of the images ... now if you want to click the

Re: [Sikuli-driver] [Question #242258]: visual calculator button need help

2014-01-15 Thread Ninja Mustang
Question #242258 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242258 Status: Answered = Solved Ninja Mustang confirmed that the question is solved: actually i got it, it's probably not good but it worked. I used if the read value is 0, then click img0. if (val == 0):

Re: [Sikuli-driver] [Question #242258]: visual calculator button need help

2014-01-15 Thread Ninja Mustang
Question #242258 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/242258 Ninja Mustang posted a new comment: I think a better question would be, how do I reference a value to an image? such as 9 would go and click(img9) -- You received this question notification because you are