BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-30-2007, 06:58 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2007
Model: 8100
Carrier: Rogers
Posts: 22
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default keyStatus() invokation

Please Login to Remove!

Hi,

I understand that keyStatus() is invoked when either of the ALT or SHIFT status changes. What options are there for me to change the ALT or SHIFT status programatically? My application has hotkeys which I want to invoke from a list the person can select (so they don't have to actually press the sequence of buttons) and then the sequence can be programatically inputted to the device.

Is this possible with ALT and SHIFT, which are the two status buttons?

I thought that to do ALT and SHIFT would be as simple as invoking a EventInjector.KeyCodeEvent, but that seemed not to work. Here was what I tried:

int keycode = Keypad.keycode(Keypad.map(Keypad.KEY_ALT),KeyList ener.STATUS_NOT_FROM_KEYPAD);

EventInjector.KeyCodeEvent e = new EventInjector.KeyCodeEvent(EventInjector.KeyEvent .KEY_DOWN, Keypad.map(Keypad.key(keycode),Keypad.status(keyc ode)),Keypad.status(keycode), 15);
e.post();

//I also tried invokeEvent(), but it didn't work either. This is detected by //keyDown(), but the ALT status does not actually change.

Any ideas?

Thanks,
Dallan
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

NEW SOFASCO TAC9225115MT 110V AC FAN .1/.08A IMPEDENCE PROTECTED ~190MM
$22.99
NEW SOFASCO TAC9225115MT 110V AC FAN .1/.08A IMPEDENCE PROTECTED ~190MM picture++ EI-16 Multi-Impedance Audio Transformer 120K:600 ohm 30K:600 ohm FSe
$8.98
++ EI-16 Multi-Impedance Audio Transformer 120K:600 ohm 30K:600 ohm FSe pictureCom-Power LI-200 Line Impedance Stabilization Network 250 Microhenry 20 Amperes
$400.0
Com-Power LI-200 Line Impedance Stabilization Network 250 Microhenry 20 Amperes pictureHP 41951-61001 Impedance Test Adapter with 16092A Spring Clip Fixture
$1009.99
HP 41951-61001 Impedance Test Adapter with 16092A Spring Clip Fixture  pictureParmak DF-SP-LI Solar Pak 6 Low Impedance 6-Volt Battery-Operated 25-Mile-Ran...
$217.98
Parmak DF-SP-LI Solar Pak 6 Low Impedance 6-Volt Battery-Operated 25-Mile-Ran... picture






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