jnmorrison Posted July 1, 2004 Posted July 1, 2004 How do I test to determine that a certain window is open? I'm making a menu layout which will open in it's own window IF it's not already open. If it is, I'll have the script simply activate the window. Can someone help?
Neverland Posted July 1, 2004 Posted July 1, 2004 One suggestion... In a script you could write an IF statement like... IF PatternCount ( WindowNames; "nameofwindow") To see if "nameofwindow" is already open and the act accordingly if it is not. SR
Fenton Posted July 1, 2004 Posted July 1, 2004 In the Design functions, WindowNames A return-delimited list of open windows. If [ not PatternCount(WindowNames, "My Cool Stuff") ]
Newbies merchy Posted July 1, 2004 Newbies Posted July 1, 2004 The easiest solution is simply to use the 'close window (window name)' script then use the 'open window' script step. Saves you having two of the same window open at once. If the window isn't open in the first place then nothing happens.
Recommended Posts
This topic is 7711 days old. Please don't post here. Open a new topic instead.
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