Forums > MaxMSP

how to turn off computer using ESC key

Jul 07 2013 | 2:51 am


I will make my patch running automatically as the computer boots,
I also want the user press ESC key to turn off the computer, as normal as possible.
I don’t want it to be forced shutdown.


Jul 07 2013 | 3:21 am

You could experiment with launching a shell script (using the shell object) which contains a shutdown command. However, I’ve never tried it.


Jul 07 2013 | 8:14 am

You will likely have a much easier time doing this with the free trial of Controllermate.

Jul 07 2013 | 11:39 am

Presuming you’re working on a Mac:

-- Pasted Max Patch, click to expand. --


on windows you can send the shutdown /s command via the
mxj class

Jul 07 2013 | 7:12 pm

If you’re on windows it might be easiest to use Auto Hot Key

Jul 08 2013 | 1:50 am

[OT sorry] mmmm by the way, anyone knows if it is possible to easily disable the windows key, in windows ?

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP