Results 1 to 3 of 3

Thread: Is this correct(keyboard events)?

  1. #1

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Is this correct(keyboard events)?

    Hi.
    I try to pass a presskey event but i cannot do it.
    I'm using Smartphone 2003
    Code:
      
     Declare Sub keybd_event Lib "coredll.dll" (ByVal bVk As Byte, ByVal bScan As  Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer)
    Dim VK_BACK As Byte = &H8
               Dim KEYEVENTF_KEYDOWN As integer = &H0
    
            Dim KEYEVENTF_KEYUP As integer = &H2
            keybd_event(VK_BACK, 0, KEYEVENTF_KEYDOWN, 0)
            keybd_event(VK_BACK, 0, KEYEVENTF_KEYUP, 0)
    I does not work thought.
    Anyone?

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Is this correct(keyboard events)?

    Has your text box got focus when you call it?

    Try sending a letter such as 'A' to see if that is working, as opposed to a backspace.

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Is this correct(keyboard events)?

    It worked with p.e. keybd_event(50, 0, 0, 0)
    the problem is that i can't find the correct byte value for the "back" button.
    And also i don't know if the numbers are the same in all the smathphones.
    Such a mess

Posting Permissions

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



Click Here to Expand Forum to Full Width