sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31658
Re: [Question #264960]: How could I place a string into clipboard?
Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960
Status: Solved => Open
eduardobedoya is still having a problem:
Yes sorry, I didn't know how to edit my question, I added the "count into clipboard" question in my first comment (Now I know how to edit it)
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) # sorts top to bottom
hover(sortedMatches[-1]) # take the last one
what if I want to put the XY coordinates of last images 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.