Anybody who can help me on this?
Thanks & Regards,
Mani
From:
platform-swt-dev-bounces@xxxxxxxxxxx [mailto:platform-swt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Chandra, Mani
Sent: Friday, June 30, 2006 1:49
PM
To: Eclipse Platform SWT component
developers list.
Subject: RE: [platform-swt-dev]
Simulate a KeyPress Event
Thank you.
I am trying to capture the PrintScreen
programmatically.
Event event = new Event();
event.keyCode=SWT.PRINT_SCREEN;
event.display=Display.getDefault();
event.type=SWT.KeyDown;
Clipboard clipboard = new Clipboard(Display.getDefault());
ImageTransfer imageTransfer = ImageTransfer.getInstance();
Object obj = clipboard2.getContents(imageTransfer);
When I execure the above code, I always
get obj=null.
Any idea?
From:
platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On
Behalf Of Steve Northover
Sent: Friday, June 30, 2006 11:55
AM
To: Eclipse Platform SWT component
developers list.
Subject: Re: [platform-swt-dev]
Simulate a KeyPress Event
Investigate Display.post().
"Chandra, Mani"
<Mani.Chandra@xxxxxxxxxxxx>
Sent
by: platform-swt-dev-bounces@xxxxxxxxxxx
06/30/2006
11:15 AM
Please respond
to
"Eclipse Platform SWT component developers list."
<platform-swt-dev@xxxxxxxxxxx>
|
|
To
|
<platform-swt-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
|
[platform-swt-dev] Simulate a KeyPress Event
|
|
Hi,
How
can I create/send a KeyBoard event to the system.
E.g.
How can I send the Ctr-C to the system for an action.
Any
help?
Thanks
& Regards,
Mani_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev