← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #671319]: Saving Clipboard in to a variable

 

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

Description changed to:
Hi there,

I've seen a lot of tickets with regards clipboard().

I am using a Mac and installed Sikulix 1.1.2.

Using the following command:
doubleClick(Pattern(someText).targetOffset(90,-70)) and type("c", KeyModifier.CMD)
someText = App.getClipboard()
#print("This is " + str(someText) + " to be printed.")

It looks like that it does not work "sometimes".
Physically using the CMD and 'C' combined does work properly, meaning it prints the correct string.

Is this (what I've been reading) still an issue with JAVA, that simply
cannot be solved? Or is there an alternative what I could not find?

Thanks again for the help.

Regards,
Sander

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.