Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted

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.

Posted

Okay, I would like to point out that this post is actually a new post on a new approach to another problem It is not a carbon copy of any other post, although i can see how it can look like it is not. Thanks,

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
×
×
  • Create New...