Jump to content

Run While


Recommended Posts

Hello,

I'm looking for a way to have an exe run and do the following while "TPS REPORT" is active or runnig. I can launch such a program at the start up of "TPS REPORT" and would like it to monitor and adjust for the following actions.

IF "TPS REPORT" is not the Active window then WinSetOnTop("Book Helper", "", 0)

If "TPS Report" is the Active window then apply WinSetOnTop("Book Helper", "", 1)

If "TPS Report" is minimized then WinSetState("Book Helper", "", @SW_MINIMIZE)

If "TPS Report" is maximized then WinSetState("Book Helper", "", @SW_MAXIMIZE)

If "TPS Report" is Closed then WinClose("Book Helper", "")

I'm just now sure how to write the If statements to accomplish this. any help would be awsome!

Thanks

Link to comment
Share on other sites

  • Moderators

Hello,

I'm looking for a way to have an exe run and do the following while "TPS REPORT" is active or runnig. I can launch such a program at the start up of "TPS REPORT" and would like it to monitor and adjust for the following actions.

IF "TPS REPORT" is not the Active window then WinSetOnTop("Book Helper", "", 0)

If "TPS Report" is the Active window then apply WinSetOnTop("Book Helper", "", 1)

If "TPS Report" is minimized then WinSetState("Book Helper", "", @SW_MINIMIZE)

If "TPS Report" is maximized then WinSetState("Book Helper", "", @SW_MAXIMIZE)

If "TPS Report" is Closed then WinClose("Book Helper", "")

I'm just now sure how to write the If statements to accomplish this. any help would be awsome!

Thanks

You have like 10 topics out on this. Don't start another one.

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...