I need a script that writes to a log file the event when my Windows laptop switches from AC power to battery power and battery power to AC power.
The preferable solution would be an AutoIt or php script, but others that would be simple to deploy are welcome as well. I need the solutions for Windows XP and Windows 7.
Please bid under $20