print the copied content by env.getclipboard noe working

Bug #1480058 reported by saravanan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Invalid
Undecided
Unassigned

Bug Description

regx=Region(263,380,63,29)
doubleClick(regx)
type("a",KEY_CMD)
type("c",KEY_CMD)
var= Env.getClipboard()
print(var)

i need the output the selected content which was copied eg content is "1234" i have select and copied and get that in Env.getClipboard() and if i print that it should return 1234 as output . but iam getting output "Env.getClipBoard()"..
iam using sikuli 1.01 linux system

please suggest
thank you

Revision history for this message
Eugene S (shragovich) wrote :

I suggest asking your question in the users forum before raising a defect.

First of all, read the documentation (or other questions in the user forum) carefully. The key combination that you need to execute should be:

type("a", KeyModifier.CTRL)
type("c", KeyModifier.CTRL)

Second, in latest version of Sikuli, Env.getClipboard() is deprecated. App.getClipboard() should be used instead.

Changed in sikuli:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.