Jump to content
Server Maintenance This Week. ×

How check if layout/window is open?


This topic is 6701 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 6701 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.