← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #264960]: How could I place a string into clipboard?

 

Question #264960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264960

    Status: Answered => Open

eduardobedoya is still having a problem:
THanks Raiman,

This is my script

count = 0
try:
    matches = list(findAll("1428702277851.png"))
    count = len(matches)
except FindFailed:
    pass #nothing to do 
print "found:", count

if count > 0:
    sortedMatches = sorted(matches, key=lambda m:m.x) # sorts top to bottom
    hover(sortedMatches[-1]) # take the last one


I would like to put "count" into clipboard, is this possible????
I tried:
App.setClipboard("count")
App.setClipboard(count)
App.setClipboard("$count$")
with no result.
How can I do this, which part of sikuli 1.1 talks about this? is this possible??
Thanks Advanced

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.