Results 1 to 3 of 3

Thread: how do I emulate arrow keys

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271

    how do I emulate arrow keys

    hi,

    I want to make a program that emulates the arrow keys,

    I want to be able to run this program (the one I'm making) and have the another program that is being run, effected by the key pressing.

    I know I can do normal key presses using sendkeys.send() but I am not able to use the arrow keys this way? I have read the forums to find 'keys.left' function but this is not able to be used in sendkeys as it just creates the number 39 in a textbox instead of moving the cursor...

    any help on this one?
    §tudz

    Studzworld.com - Portfolio

  2. #2
    Lively Member
    Join Date
    Jul 2003
    Location
    Kuala Lumpur (Malaysia)
    Posts
    92

    Smile

    Hi,

    Is it the application source code available. If do, they you have to make the changes to the code so it can accept the command more efficient than the keyboard events.

    By using the keyboard event. sometime it will trigger and sometime it wouldn't. It depends on the form focus (windows put the events to the focus form). Unless you know to tap the windows keyboard event from the kernel level.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271
    so, what your trying to say is that, if I had my program running in the background then if I used sendkeys.send(vbleft) then it would actually emulate the press of the left arrow key, instead of generate a value?
    §tudz

    Studzworld.com - Portfolio

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