how to turn off computer using ESC key

Jul 7, 2013 at 2:51am

how to turn off computer using ESC key


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 7, 2013 at 3:21am

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


Jul 7, 2013 at 8:14am

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

Jul 7, 2013 at 11:39am

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 7, 2013 at 7:12pm

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

Jul 8, 2013 at 1:50am

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


You must be logged in to reply to this topic.