Alternate for Sleep Method in VB Script

  • Thread starter Thread starter Shahid
  • Start date Start date
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.
 
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 ??
 
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.
 
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
 
Back
Top