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

eduardobedoya gave more information on the question:
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" (I mean the variable number) into clipboard, is 
this possible????
I tried:
App.setClipboard("count") it shows literally count as text
App.setClipboard(count) it shows [error] TypeError ( setClipboard(): 1st arg 
can't be coerced to String )
App.setClipboard("$count$") also literally

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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to