Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Send directly keyboard events
Send directly keyboard events [message #558584] Mon, 13 September 2010 15:12 Go to next message
Mickael Istria is currently offline Mickael Istria
Messages: 754
Registered: July 2009
Location: Grenoble, France
Senior Member
Hello,

I am wondering whether there is a way in SWTBot API to create keyboard events such as a Ctrl-C or a Esc key pressed ?
I could not find anything like this in the API...

Regards,
--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: Send directly keyboard events [message #623618 is a reply to message #558584] Wed, 22 September 2010 02:26 Go to previous message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
On 9/13/10 8:12 AM, Mickael Istria wrote:
> Hello,
>
> I am wondering whether there is a way in SWTBot API to create keyboard
> events such as a Ctrl-C or a Esc key pressed ?
> I could not find anything like this in the API...
>
> Regards,

Try one of the variants of widget.pressShortcut()

There's a lot of convenience keys defined in swtbot's Keystrokes class.

--
Ketan
ketan.padegaonkar.name | eclipse.org/swtbot | @ketanpkr
Previous Topic:Issues with the forums
Next Topic:Searching Trees
Goto Forum:
  


Current Time: Tue Sep 16 07:34:28 GMT 2014

Powered by FUDForum. Page generated in 0.02395 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software