Results 1 to 2 of 2

Thread: Program that presses 2 buttons

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    1

    Smile Program that presses 2 buttons

    I don't know VB very much, but I need a program that will press F5 and Enter.
    It should go like this.
    If i press the button START it will
    1. Wait 5000 milliseconds
    2. Press F5
    3. Wait 100 milliseconds
    4. Press Enter
    5. Wait 2000 milliseconds
    and then over and over again from step 2, until i press the button STOP
    Please help me...i know some of these steps but i cannot write the whole program, because of lack of experience with VB...thanx

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951
    You would have to create a loop with a Do Events in it (to trrap the STOP button.

    Use the Sleep command for the delay

    Use the Keypress command to perform the various Key presses (F5, Enter)

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