58hoo Posted December 6, 2006 Posted December 6, 2006 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
realkiller Posted December 6, 2006 Posted December 6, 2006 you need to make a loop in it i made the code for you while 1 If Not WinActive("WIN1") Then WinActivate("WIN1") EndIf If Not WinActive("WIN2") Then WinActivate("WIN2") EndIf wend Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
58hoo Posted December 7, 2006 Author Posted December 7, 2006 you need to make a loop in it i made the code for you while 1 If Not WinActive("WIN1") Then WinActivate("WIN1") EndIf If Not WinActive("WIN2") Then WinActivate("WIN2") EndIf wend
58hoo Posted December 7, 2006 Author Posted December 7, 2006 Your help was right on the mark! Thank you, Realkiller
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now