December 19, 200520 yr What script would I use to check if a certain layout or a certain window (via its title) is open? Thx.
December 19, 200520 yr Hi, MarkSLC! Is there reason to know is open or not? If you need to open - open it, or if you want to close - close it, without knowing it is open or close.
December 19, 200520 yr Author Hi. Yeah, I have some scripts that depend on knowing whether the window is open and the information available to the user, and if the window is taking up screen real estate. I started out by setting a global variable "flag." The user clicks a button, the New Window() opens, the flag = true. The user clicks the same button (a toggle), the window closes, the flag = false. The problem? The user can click the window's close button (of the close/minimize/maximize buttons), and I would not know the window is gone.
December 19, 200520 yr Dont use your button for clossing window(use system clossing button(close/minimize/maximize buttons)). Your button use only for opening window.
December 19, 200520 yr Use the WindowNames {( fileName )} function. This returns a carriage returned delimitated listing of all the current windows that are open. More specifically, the window's titles. All you have to do is run a patterncount against this function for what you're looking for.
December 20, 200520 yr You may find this custom function useful: http://www.clevelandconsulting.com/support/viewtopic.php?t=287
Create an account or sign in to comment