View Single Post
Old 04-16-2006, 12:44 PM   #8
whodwho
Constant Bitrate
 
Join Date: Nov 2005
Posts: 215
Quote: Originally Posted by tolisn
I,m trying to run a program that will send a command to a servo so that it can close a custom motorized screen. This should be done a soon as the power button is pressed. Before the pc is shut done it should run this program and when the program finishes it should then shut down gracefully.

Do you have your power button set to shutdown or suspend/hibernate? It is easy to intercept suspend/hibernate calls and deny them, run what you would like to and initiate your own shutdown when your process is done. For some reason they don't make shutdown that easy.
whodwho is offline   Reply With Quote