close standalone with window-close button (X)
Hi, maybe a newbie question:
By default, standalone built by Max quits with File menu or Ctrl+Q (on windows)
Is there a way to enable the red X button on right hand corner and close the application with it? now it’s grayed out.
If I understand what you want to do, you have to do a few things.
First, you need to enable the window close button. This is done with a window message to thispatcher with a loadbang.
You then need to tell Max that when the patcher is closed, you want close the app. You can do this with a closebang that triggers a message to Max:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 416.3ocyT98aBBCDG+Y3uhl5qrE9gf37o8OvR1yalkJbhcAZczxjMi+uOZA1 TGJlnw3KGgu20q28giasoAdFuDDXzCnWPFFqMMLzRJAil2MvYjxnThPGFlAq 3ydGaU6RBkRsbJmDOivRZcrjHiVPYIukCQx5763EdusExyUYCrUV2JKZZyQn w5LUk86F2lFVQFkkBR8c6zHNmyjB52fVSkseikWH2O3ZI4WKg5p.qqxeuTUt XjLsS7i4TRJV4XiooxXcdPIJkKfdnxvgZbTCE+iAkvNgh8MKTx.gfj.+iJqn rX9Jz7TRh.oQjEpQCJgn9mfBzVmvf5GcSqQcRK2KBstRiOxETglBPd+Pwwtd DZ7wFg7O++qbOHTr5ALMdDjOaOxfmTGZm1DgmnLCdVYAVbsBZ5Eb9axq4Uwg 9nfJa8kRYPDufI2tCO3Oqi06t7CZ2l0Eo8tAF+zgo6s81vq6Lk9tzSvKxiZu jl0vn+5tXPHoLhjxYaEynchYAMNFXauWJiFujSYxlR3.eIO0JJ7DpHuqZEM5 DpH+ynhpdYi4OTnuIuH -----------end_max5_patcher-----------
Hi to all
I don’t know if the method Ben proposes is a good one or has a bug. I tried this on Max 5.0.7, WinXP Professional 32-bit, and I had a problem. Ok, if you try to build a simple .exe application it will close just fine; however the application still runs if you check the Windows Task Manager under the Processes tab. So unless this has a workaround, I believe it can cause far more problems than to solve.
All the best,
Sorry to reignite an old topic. I’ve just been trying Ben’s method on a standalone built from Max 5.1.9 and it works fine on a Windows 7 machine. However, on Windows XP, even though the application seems to close I get a Windows error message saying "MaxMSP has encountered a problem and needs to close. We are sorry for the inconvenience". It does not continue to run in the background if I check the task manager however.
Forums > MaxMSP