Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How check if layout/window is open?

Featured Replies

What script would I use to check if a certain layout or a certain window (via its title) is open? Thx.

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.

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

Dont use your button for clossing window(use system clossing button(close/minimize/maximize buttons)).

Your button use only for opening window.

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.

  • Author

Perfect. Thanks Brent for helping me solve this one.

You may find this custom function useful:

http://www.clevelandconsulting.com/support/viewtopic.php?t=287

  • Author

Yes, useful. Thank you Fitch.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.