Simulating "Menu Click" event when a list item is selected thru the "Enter" key?
Hi,
I have a list box and traping for the "Enter" key pressed. When Enter key is pressed, need to link it with a menu click event. How can i do that?
i.e. how can i simulate a "Menu Click" event when a list box item is selected thru the "Enter" key.
i.e. Posting "Menu Click(EAknSoftkeyOk)" event under the HandleListBoxEvent() for a list box?
Thanks,
sraman
Re: Simulating "Menu Click" event when a list item is selected thru the "Enter" key?
if you want to pass the "menu click" event to appui then call:
CEikonEnv::Static()->EikAppUi()->HandleCommandL(EAknSoftkeyOk);
Re: Simulating "Menu Click" event when a list item is selected thru the "Enter" key?
[QUOTE=chenziteng]if you want to pass the "menu click" event to appui then call:
CEikonEnv::Static()->EikAppUi()->HandleCommandL(EAknSoftkeyOk);[/QUOTE]
Thanks a lot, chenziteng. Your solution perfectly works.
Thanks,
sraman
Re: Simulating "Menu Click" event when a list item is selected thru the "Enter" key?
hi to all i m newble in all i want to know that can i Simulate key press in game application
i read from some posts that in game application CdirectScreenAccess is used and SendKey and SimulateKey method is used in case of WindowServer
Is there any way to take full control on Mobile using Computer including game using AT commands and otherways
so please reply me soon its very criticle for me......
thanks in advance