How To Make VB 6 Press A Key After X Seconds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RaDiX3r
    New Member
    • Jan 2014
    • 1

    #1

    How To Make VB 6 Press A Key After X Seconds

    Hi Everyone
    I need to make VB to press a key after a short time what should i do?
    witch button should i use or what to write there
    Thanks
  • FatalFlame
    New Member
    • Feb 2014
    • 1

    #2
    while waiting for another people with more accurate answer...maybe this will help you a little..
    http://msdn.microsoft.com/en-us/libr...(v=vs.60).aspx


    and for the x second...you can use a timer instead...i never use vb6 before so i dont really know how the timer will work in vb6...i think "googling" will solve it...
    Last edited by FatalFlame; Feb 24 '14, 03:34 PM. Reason: add another point for the "x"

    Comment

    • Honduras2811
      New Member
      • Apr 2014
      • 21

      #3
      1. Add a timer to the form.
      2. Set the interval in milliseconds in the Form_Load Sub, or with code.
      3. Enable the timer when ready.
      4. Use the Timer_Timer event to trigger a SendKeys function.

      Comment

      Working...