From: Sudarsha W. <Sud...@ca...> - 2008-08-11 19:43:34
|
I've found out that the following code snippet would input a given key combination with Abbot SWT. abbot.swt.tester.WidgetTester.getWidgetTester().actionKey(SWT.<key1> | SWT.<key2> | SWT.<key3> ...etc); For example, the following code snippet would input "Ctrl + Alt + Del" key combination: abbot.swt.tester.WidgetTester.getWidgetTester().actionKey(SWT.CTRL | SWT.ALT | SWT.DEL); Sudarsha Wijenayake, B.Eng. Software Engineer, IBM Rational Software, Sudarsha Wijenayake/Ottawa/IBM@IBMCA Sent by: abb...@li... 08/11/2008 11:17 AM To abb...@li... cc Subject [abbot-users] How to input a key combination with Abbot SWT? Hi All, I would appreciate it very much if somebody could tell me how to input a key combination (say Ctrl+Alt+Del for instance) with Abbot SWT. I tried the following code snippet, but it just seemed to type each key individually without simulating holding down the remaining keys (i.e. Ctrl and Alt). abbot.swt.tester.WidgetTester.getWidgetTester().actionKey(SWT.CTRL + SWT.ALT + SWT.DEL) Any help would be greatly appreciated. Sudarsha Wijenayake, B.Eng. Software Engineer, IBM Rational Software, ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ abbot-users mailing list abb...@li... https://lists.sourceforge.net/lists/listinfo/abbot-users |