Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi,

I'm sure this is a simple thing to do, but I can't find out how. :

I'm using a script which includes New Window.

What I want to do ... is ... if the window already exists (out of view ... behind other windows) then bring it to the front, if not, then go ahead and create a New Window.

How can I do an "if exists windowName" kind of thing?

Many thanks for any help/pointers. :

Grant

Posted (edited)

Hi

Using multiple windows can create many complications, particulary if you start changing layouts once those windows are being used.

The important point is that you are naming your windows according to there function (i.e so that each window name is unique and has the same name each time it is used).

Then when running a script use something like:

Select Window (Name: "Name")

If [Get (windowname) = "Name"]

Enter Browse Mode

Go to Layout

Exit Script

End If

New Window [Name: "Name"]

Enter Browse Mode

Go to Layout

Hope this helps

Edited by Guest

This topic is 6860 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.