sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32278
Re: [Question #266654]: Is it possible to assign 'type("v", KEY_CTRL)' value to a variable
Question #266654 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266654
Status: Open => Answered
RaiMan proposed the following answer:
ok, either some math to do ;-)
or count the number of numbers behind the decimal .
what ever is more suitable.
l = len(selection)
dot = selection.find(".") # should not be -1 !!!
paste(str(float(x) + float("0." + "1".zfill(len - dot - 2)))
the principal, but not tested ;-)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.