Jump to content

Need Ideas for a Loop


Recommended Posts

I'm looking for ideas...

I need to run a loop while an application is not busy, so I need to test for the not busy status. I am thinking of using ControlCommand() to see if a control is grayed-out or possibly ControlGetText() to see if certain text exists.

This loop will be embedded in a function so the test will occur in the main loop of the script. I'll use an IF...Then in the main loop to call the function.

So if you got ideas using other than ControlCommand() or ControlGetText() I'd like to review them.

Link to comment
Share on other sites

  • Moderators

I'm looking for ideas...

I need to run a loop while an application is not busy, so I need to test for the not busy status. I am thinking of using ControlCommand() to see if a control is grayed-out or possibly ControlGetText() to see if certain text exists.

This loop will be embedded in a function so the test will occur in the main loop of the script. I'll use an IF...Then in the main loop to call the function.

So if you got ideas using other than ControlCommand() or ControlGetText() I'd like to review them.

I use those methods if the apps have windows, that just seems most logical to me checking for specific conditions with things like "IsVisible"/"IsEnabled", I suppose you could monitor the apps CPU consumption, but I don't think that would reliable at all really.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...