BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-02-2008, 07:30 PM   #1 (permalink)
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
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
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
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Menu Button Injection

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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Avaya Partner $160 ACS 3x8 Processor R1-6 Repair Service 103G15(28)R 70216047
$160.0
Avaya Partner $160 ACS 3x8 Processor R1-6 Repair Service 103G15(28)R 70216047 pictureAvaya Lucent PARTNER ACS Phone System Processor VOICEMAIL
$76.16
Avaya Lucent PARTNER ACS Phone System Processor VOICEMAIL  pictureRobot Coupe R402V Food Processor with Cutter Bowl and Preparation Attach.
$1899.99
Robot Coupe R402V Food Processor with Cutter Bowl and Preparation Attach. pictureSiemens 6ES7318-3FL01-0AB0 CPU319F-3 PN/DP,
$3200.0
Siemens 6ES7318-3FL01-0AB0 CPU319F-3 PN/DP,  pictureSiemens 6ES7313-6CG04-0AB0 SIMATIC S7-300 CPU313C-2 DP Controller
$1100.0
Siemens 6ES7313-6CG04-0AB0 SIMATIC S7-300 CPU313C-2 DP Controller picture






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