BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-18-2007, 01:02 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Nov 2007
Model: 8100
PIN: N/A
Carrier: vodafone
Posts: 61
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default press key through Eventinjector

Please Login to Remove!

hi there is possible to invoke keys without actually pressing the key in keypad through event injector i have tried by using the following code but ther is no change in main screen...
Code:
EventInjector.KeyCodeEvent keyEvent = new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_DOWN,Characters.DIGIT_EIGHT, KeypadListener.STATUS_ALT | KeypadListener.STATUS_NOT_FROM_KEYPAD,0);
             EventInjector.invokeEvent(keyEvent);
             keyEvent = new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_UP,Characters.DIGIT_EIGHT, KeypadListener.STATUS_ALT | KeypadListener.STATUS_NOT_FROM_KEYPAD,0);
             EventInjector.invokeEvent(keyEvent);
in this the parameter "Characters.DIGIT_EIGHT" is not working ....
Offline  
Old 11-04-2008, 04:12 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: AT
Posts: 81
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Use in following way,

EventInjector.TrackwheelEvent eDown = new EventInjector.TrackwheelEvent(
EventInjector.TrackwheelEvent.THUMB_CLICK, 1,
KeypadListener.STATUS_NOT_FROM_KEYPAD);
EventInjector.TrackwheelEvent eUp = new EventInjector.TrackwheelEvent(
EventInjector.TrackwheelEvent.THUMB_UNCLICK, 1,
KeypadListener.STATUS_NOT_FROM_KEYPAD);

eDown.post();
eUp.post();
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

SIEMENS CIRCUIT BOARD/MEMORY UNIT 6FC5110-0DB02-0AA2 EWK-X30 570514.0002.02
$1600.0
SIEMENS CIRCUIT BOARD/MEMORY UNIT 6FC5110-0DB02-0AA2 EWK-X30 570514.0002.02 pictureHITACHI BUBBLE MEMORY UNIT BMU 64-1 A87L-0001-0015/03E
$700.0
HITACHI BUBBLE MEMORY UNIT BMU 64-1 A87L-0001-0015/03E pictureLot of 3 Zig Memory System Millennium Marker Assortment Black SEALED
$29.91
Lot of 3 Zig Memory System Millennium Marker Assortment Black SEALED  pictureFellows Fabric Memory Foam Keyboard Wrist Rest Graphite 9252301 Microban
$19.99
Fellows Fabric Memory Foam Keyboard Wrist Rest Graphite 9252301 Microban pictureOKUMA BUBBLE MEMORY CARD UNIT 4MBITX1 E0227-702-007 BEST EBAY 120 DAY WRNTY
$450.0
OKUMA BUBBLE MEMORY CARD UNIT 4MBITX1 E0227-702-007 BEST EBAY 120 DAY WRNTY picture






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