Run .bat file on switch to Battery/AC

Oct 25, 2008 at 4:26 PM
It would be really useful to have a line where you can check to run a batch file on both plug in or unplug.  For instance, I have two batch files that disable and re-enable a bunch of devices as well as use ultramon profile short cuts to put the display in low refresh rate and lower the color depth.  clearly, I can click on these manually, but one also might want a whole number of other things to be possible on switch -- e.g. playing a sound, or something.  I am going to have my friend who is a much better coder than I look over the source to see if it would be easy, but if anyone knows how to do this, if they could post a patch or reply.

Any thoughts on this addition?