sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31660
Re: [Question #264960]: How could I place a string into clipboard?
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960
eduardobedoya gave more information on the question:
Yes sorry, I didn't know how to edit my question, I added the "count into clipboard" question part in my first comment (Now I know how to edit it, sorry)
Thanks both worked fine.
I am in this page
https://docs.python.org/2.7/
I typed in the "Quick Search" box...."countAsText" but it didn't find anything
That is the right python tutorial, right?
Could you please suggest me some tutorial related to this "string to number stuff", I really would like to read about it?
For example
Lets say in my script after I count the images I sorted in x axis using
if count > 0:
sortedMatches = sorted(matches, key=lambda m:m.x)
hover(sortedMatches[-1]) # take the last one
what if I want to put the XY coordinates of the last image in clipboard? I guess they are stored in "sortedMatches[-1]"
but I guess I'm missing some syntax in....
countAsText = "%d" %(sortedMatches[-1])
Thanks Advanced.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.