Jump to content

How can I make a window "stay active"


58hoo
 Share

Recommended Posts

1.Am getting information from Window1 in Application1 that activates/deactivates the window as it desires.

2. Would like to mouse click in Window2 in Application2 (also activates/deactivate the window as it desires).

If Not WinActive("WIN1") Then

WinActivate("WIN1")

WinWaitActive("WIN1")

EndIf

;code to get information from WIN1

If Not WinActive("WIN2") Then

WinActivate("WIN2")

WinWaitActive("WIN2")

EndIf

:code to select a button to click based on info (variable) set in code in WIN1

This works MOST of the time but I think one of the windows may be activating/deactivating

How can I check and prevent this?

Thanks

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