how to turn off computer using ESC key

Jul 7, 2013 at 2:51am

how to turn off computer using ESC key

hello.

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.

thx.

#255123
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.

HTH,
Ádám

#255124
Jul 7, 2013 at 8:14am

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

#255141
Jul 7, 2013 at 11:39am

Presuming you’re working on a Mac:
<code>

– Pasted Max Patch, click to expand. –

</code>

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

#255151
Jul 7, 2013 at 7:12pm

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

http://www.autohotkey.com/

#255168
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 ?

#255186

You must be logged in to reply to this topic.