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

4.7uf 16V ROE type X4 Qty20 Vintage Hi end Axial TANTALUM Caps for AUDIO
$5.45
4.7uf 16V  ROE type X4  Qty20  Vintage  Hi end Axial TANTALUM Caps for AUDIO  pictureExcelvan M6013 Digital Auto Ranging Capacitance Meter Tester Capacitor Tester
$40.3
Excelvan M6013 Digital Auto Ranging Capacitance Meter Tester Capacitor Tester pictureAluminum Electrolytic Capacitors - Screw Terminal LYTIC 350V 3300uF
$58.0
Aluminum Electrolytic Capacitors - Screw Terminal LYTIC 350V 3300uF pictureCBB60 Motor Start Capacitor 20MFD 20uF 450VAC HVAC Capacitor 42mm*80mm
$5.5
CBB60 Motor Start Capacitor 20MFD 20uF 450VAC HVAC Capacitor 42mm*80mm picture50p 10A10 10 Amp 1000V 10A 1KV Axial Rectifier Diode (C208)
$8.5
50p 10A10 10 Amp 1000V 10A 1KV Axial Rectifier Diode (C208) picture






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