BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-02-2008, 07:30 PM   #1
georg
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: Berlin
Model: 9500
OS: v4.7.0.78
PIN: 20CAFA18
Carrier: O2
Posts: 39
Default Menu Button Injection

Please Login to Remove!

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.
Offline  
Old 04-10-2008, 01:12 PM   #2
georg
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: Berlin
Model: 9500
OS: v4.7.0.78
PIN: 20CAFA18
Carrier: O2
Posts: 39
Default Menu Button Injection

Yeah it works with the little change
Code:
(char) Keypad.KEY_MENU
.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


APPLE 630-0895-B  VRAM 128K X 8 BOARD CARD VINTAGE picture

APPLE 630-0895-B VRAM 128K X 8 BOARD CARD VINTAGE

$74.77



APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD  picture

APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD

$149.99



128K RAM - APPLE - ORIGINAL APPLE prototype BOARD picture

128K RAM - APPLE - ORIGINAL APPLE prototype BOARD

$408.75







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.