|
-
Jan 12th, 2000, 05:05 AM
#1
Thread Starter
Member
How can I tell vb to wait until the computer finished the first process until it moves to the next step? My program runs faster than the computer can handle. Each step is executed and then the computer has to catch up. I need it to do each step one at a time. Any ideas?
Thanks
[This message has been edited by desquite (edited 01-12-2000).]
-
Jan 12th, 2000, 11:03 AM
#2
Hyperactive Member
I can't get your questoin, what do you mean by process, another exe program, or control's event?
-
Jan 12th, 2000, 11:25 AM
#3
Hyperactive Member
If you're sending instructions to another application, e.g. sendkeys, try putting a DoEvents command after the command. The program won't continue until the event is completed.
If you're "Shelling" a command, try the tip below,
http://www.vb-world.net/tips/tip5.html
Al.
------------------
A computer is a tool, not a toy.
<A HREF="mailto:[email protected]
[email protected]">[email protected]
[email protected]</A>
[This message has been edited by Al Smith (edited 01-12-2000).]
-
Jan 12th, 2000, 11:01 PM
#4
Thread Starter
Member
I'm sorry I wasn't specific. It's actually my lines of code that I'm talking about. I want the first line of code to execute, then wait until computer finishes processing it before it moves to the next line of code. I've put a few pauses with DoEvents in there but it's very unconsistant depending on how fast your computer is.
Thanks
-
Jan 13th, 2000, 12:35 PM
#5
-
Jan 13th, 2000, 12:43 PM
#6
Thread Starter
Member
Thanks JazzBass. Funny thing...I just did that right before you sent the message. I check for the windows and wait until they're gone.
Thanks!
-
Jan 13th, 2000, 12:52 PM
#7
Hyperactive Member
desquite,
Good deal! I meant to ask you if you had any open windows running in your process, but I figured you'd get the idea if that was the case.
Glad to be of help.
JazzBass
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|