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

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

Recommended Posts

Posted

I have a feeling this might be a FAQ of sorts; apologies if it is (I tried to find it in the forums). Is there a way to trigger a script when a user tries to close a FM window (or, even better, prevent them from being able to close a window)?

Posted

Hello,

You can add a trick, so that the Windows Close button cannot perform close.

I combined Allow Abort (Off) and a Pause Script in order to make the Windows Close button cannot work.

You can see the file attached. Hopefully, that the one you requested...

Test.zip

Posted (edited)

Thanks; I'll give that a try. There's no way to prevent a user from clicking the window's "close" button, though, is there?

The script you attach to the Close Window command can be as simple as an empty script, so nothing will happen. Not sure what else you could want.

BTW, That sample file is not very helpful if you ever need to run other scripts, or if your user hits the enter key.

Edited by Guest
Posted

Hello Dj,

About the sample file that I gave is test purpose only for disabling the Windows Close button. It's a simple trick.

For me, in this condition, if I want to execute the other script, I would Halt the previous script (which contains Pause/Resume script indefinitely). I thought it can work well?

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