BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Menu Button Injection (http://www.blackberryforums.com/showthread.php?t=123462)

georg 04-02-2008 07:30 PM

Menu Button Injection
 
Hello,

does anyone know how to "press" the menu button with EventInjector? I haven't found something usable but not sure to had overseen something. KeyEvent and KeyCodeEvent are both using char values but I don't see a char for the menu button.

Code:

EventInjector.invokeEvent(new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_DOWN, Keypad.map(Keypad.KEY_MENU), 0, 100));
EventInjector.invokeEvent(new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_UP, Keypad.map(Keypad.KEY_MENU), 0, 100));

Seems not to work.

georg 04-10-2008 01:12 PM

Menu Button Injection
 
Yeah it works with the little change
Code:

(char) Keypad.KEY_MENU
.


All times are GMT -5. The time now is 07:40 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.