KnoxIan Posted December 5, 2007 Posted December 5, 2007 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)?
David Jondreau Posted December 5, 2007 Posted December 5, 2007 In 8+ Advanced you can create a custom menu and attach a script to the Close Window command (or eliminate it completely).
KnoxIan Posted December 5, 2007 Author Posted December 5, 2007 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?
_henry_ Posted December 5, 2007 Posted December 5, 2007 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
David Jondreau Posted December 5, 2007 Posted December 5, 2007 (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 December 5, 2007 by Guest
_henry_ Posted December 5, 2007 Posted December 5, 2007 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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now