Alternate for Sleep Method in VB Script

S

Shahid

I am implementing a SendKey solution to automate a web application in
internet explorer. As a part of problem, I have to pause the sendkey
script at certain points. Sleep method does not work and if I use a
loop then it will pin the CPU.
Looking if somebody has a solution for this without using a CPU
intensive loop.
 
H

Homer J Simpson

I am implementing a SendKey solution to automate a web application in
internet explorer. As a part of problem, I have to pause the sendkey
script at certain points. Sleep method does not work and if I use a
loop then it will pin the CPU.
Looking if somebody has a solution for this without using a CPU
intensive loop.

Why not use Application.DoEvents ??
 
S

Shahid

Application.DoEvents will not help me. As I open windows in web
application and I have to wait for window opening before sending key
strokes.
 
H

Homer J Simpson

Application.DoEvents will not help me. As I open windows in web
application and I have to wait for window opening before sending key
strokes.

You need to use the call which opens the web pages and then signals when the
action is completed. There was one in VB6 and I imagine there is one for
..Net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top