> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of [EMAIL PROTECTED] > Sent: August 25, 2005 3:06 AM > To: perl-win32-users@listserv.ActiveState.com > Subject: Trap window close > > Hi, > > Have looked at sigint to trap the "window close" event but am > a little lost. > > We run some scripts in cmd prompt windows on win2k and I > would like to ignore it if someone accidentally clicks the > 'x' to close the window. Is that possible? Does someone have > a bit of code? >
I posted some code such as this a couple of years back. It got reposted on this list .. http://aspn.activestate.com/ASPN/Mail/Message/1467974 You will have to obviously edit it for your needs - but it shows that it is possible to do. Jack _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs