December 5, 200718 yr 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)?
December 5, 200718 yr In 8+ Advanced you can create a custom menu and attach a script to the Close Window command (or eliminate it completely).
December 5, 200718 yr Author 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?
December 5, 200718 yr 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
December 5, 200718 yr 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 December 5, 200718 yr by Guest
December 5, 200718 yr 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?
Create an account or sign in to comment