Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Troubles with pressShorcut
Troubles with pressShorcut [message #1311071] Wed, 23 April 2014 11:28 Go to next message
Eclipse UserFriend
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);

FOR THESE FUNCTIONS I DECLARED MY BOT:
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 13:12 Go to previous message
Eclipse UserFriend
Did you have a look at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=278162 ? It may contain
some helpful insights.

Have you also tried
text.pressShortcut(SWT.CTRL, ' ');
?
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:Using SWTBot for Eclipse tutoring
Next Topic:Launched workspace error
Goto Forum:
  


Current Time: Tue Jul 01 19:12:42 EDT 2025

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

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

Back to the top