Results 1 to 3 of 3

Thread: Simulate Keys

  1. #1

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

    Simulate Keys

    hi

    I want to simualte the press of these Keys:

    Left (Arrow)
    Right (Arrow)
    Up (Arrow)
    Down (Arrow)
    Enter


    I know I can use sendkeys.send() to send normal keys, but how to I simulate the press of these keys?

    Thanks
    §tudz

    Studzworld.com - Portfolio

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    have you tried the normal way ( like it was in vb6 ) ? eg:
    VB Code:
    1. SendKeys.Send("{UP}") '/// up arrow
    2. SendKeys.Send("{DOWN}") '///down arrow
    3. SendKeys.Send("{LEFT}") '/// left arrow
    4. SendKeys.Send("{RIGHT}") '/// right arrow
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    UK
    Posts
    271
    thanks for that if works great,

    just another question I have another program called app1.exe

    I want my previous application, which uses the send keys function, to select thi app1.exe

    how do I do this?
    §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