By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

Alternate for Sleep Method in VB Script

P: n/a
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.

Mar 23 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Shahid" <Sh**********@Yahoo.com> wrote in message
news:11*********************@z34g2000cwc.googlegro ups.com...
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 ??

Mar 24 '06 #2

P: n/a
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.

Mar 24 '06 #3

P: n/a

"Shahid" <Sh**********@Yahoo.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
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

Mar 25 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.