How to simulate the keypree events in BREW | developer.brewmp.com How to simulate the keypree events in BREW | developer.brewmp.com

Developer

How to simulate the keypree events in BREW

Forums:

Hi all,
Iam new to BREW. Iam developing an application in which i have to simulate the key press events. (i.e without actually pressing a key in the simualator we have to perform that particular action in the code)
I have searched in the net i got some code for symbian to simulating the key press events
TWsEvent event;
RWsSession wsSession=CCoeEnv::Static()->WsSession();
TInt id = wsSession.GetFocusWindowGroup();
event.SetType(EEventKey);
event.SetTimeNow();
event.Key()->iCode = EKeyUpArrow;
event.Key()->iModifiers = 0;
event.Key()->iRepeats = 0;
event.Key()->iScanCode = EStdKeyUpArrow;
wsSession.SendEventToWindowGroup( id, event );
wsSession.Flush();

like that is there any code for simulating the key events in BREW??

Thanks in advance,
Rajeshwari.

Hi
please check your previous post.

Hi
please check your previous post.

You should look at the Grinder, a desktop app which sends key events to the phone. It's part of the BREW Tools Suite.
-Erik

You should look at the Grinder, a desktop app which sends key events to the phone. It's part of the BREW Tools Suite.
-Erik