sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42852
Re: [Question #644039]: Convert string into numerical data
Question #644039 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644039
Description changed to:
Hi there,
I want to do the following:
1 Select a bit of text (it is actually a number) from a datafield within a browser (not a problem in sikuli).
2 Convert the string value into numerical data
3 Add +1 to the new value
4 Paste the new value
My problem is that I am stuck on step 2. What is the easiest way to go
about? I'm not even sure if Sikuli can do this.
Many thanks in advance!
MPE
UPDATE:
Ok, so I've found answers to similar question using "number = int(Region.text(calcUpperLeft))"
The problem is, however, that I have no idea how to define a region, and there really are no instructions or tutorials online. Help is much appreciated.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.