Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Troubles with pressShorcut
Troubles with pressShorcut [message #1311071] Wed, 23 April 2014 15:28 Go to next message
benson arce is currently offline benson arceFriend
Messages: 1
Registered: April 2014
Junior Member
Hi everyone, I am playing with SWTBot but I have a problem, I am editing a Styled Text and I need to press "CTRL + SPACE" and I tested with plenty of functions that I found here in the forums but none works:

1.- KeyboardFactory.getSWTKeyboard().pressShortcut(Keystrokes.CTRL, Keystrokes.SPACE);

2.- KeyboardFactory.getAWTKeyboard().pressShortcut(SWT.CTRL, SWT.SPACE);

public static SWTWorkbenchBot bot;
3.- bot.styledText().pressShortcut(Keystrokes.CTRL, Keystrokes.SPACE);

4.- bot.styledText().pressShortcut(SWT.CTRL, SWT.SPACE);

please help me!!
Re: Troubles with pressShorcut [message #1311208 is a reply to message #1311071] Wed, 23 April 2014 17:12 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 813
Registered: July 2009
Location: Grenoble, France
Senior Member
Did you have a look at ? It may contain
some helpful insights.

Have you also tried
text.pressShortcut(SWT.CTRL, ' ');
Mickael Istria
My job:
My blog:
My Tweets:
Previous Topic:Using SWTBot for Eclipse tutoring
Next Topic:Launched workspace error
Goto Forum:

Current Time: Fri Oct 21 20:25:57 GMT 2016

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

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