Jump to content
Sign in to follow this  

sleep and machine independence

Recommended Posts


I use the Find function supplying the search criteria from an array. If the data is not found I then send the ESC or ENTER keystoke (have tried both) and send the next element until I have a hit. I have no problem getting this to work but have to adjust based on machine speed via a sleep command an/or WinWaitDelay parameter change.

Long story short: I want to maximize my run time and have machine independence. In execution if I am running on a slow machine the ENTER or ESC key does not clear the Microsoft Internet Explorer "Finished searching the document" dialog box unless the sleep time is increased. Fastest machine I do not have to use sleep. So, is there a way to avoid sleep commands. I have issued the WinWaitActive command for the Find but does not work. I am wanting to utilize WinWaitDelay = 001 and SendKeyDelay = 01. I have gotten around the SendKeyDelay of truncation by reading back the data and comparng to sent data.

Any feedback is appreciated.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.