Creating Delays

Can you suggest ways to delay sending keystrokes to the external application? I’ve tried inserting ‘For-Next’ loops of different durations but without success.

Try a timer control. That is about the only reliable way to time tasks in Visual Basic. There are a couple of API functions, but the Timer Control is much easier. You can set the interval through code, and turn it off when you do not need it any more.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: