×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    35

    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

  2. #2
    Nokia Developer Champion
    Join Date
    May 2004
    Posts
    2,267

    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);

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    35

    Re: Simulating "Menu Click" event when a list item is selected thru the "Enter" key?

    Quote Originally Posted by chenziteng
    if you want to pass the "menu click" event to appui then call:
    CEikonEnv::Static()->EikAppUi()->HandleCommandL(EAknSoftkeyOk);
    Thanks a lot, chenziteng. Your solution perfectly works.

    Thanks,
    sraman

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    20

    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

Similar Threads

  1. Simulating key event
    By Shaikuny in forum Symbian
    Replies: 1
    Last Post: 2005-09-05, 04:23
  2. Replies: 6
    Last Post: 2004-12-22, 05:24
  3. Replies: 2
    Last Post: 2004-12-18, 08:50
  4. Simulating Long Key Press event in debugging mode...
    By empeegee in forum Multimodecards
    Replies: 1
    Last Post: 2004-12-18, 06:31
  5. List item selection
    By SanDan in forum Mobile Java General
    Replies: 2
    Last Post: 2003-05-06, 10:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×