I needed away to change the Power Buttons on Windows XP Systems during deployment and after searching the internet i quickly found others with the same problem since these settings cannot be set via script easily and are usually handled by third party software from the hardware vendor.
to be more specific on XP Laptop systems i did not want the power options to shutdown or put the system in standby when the lid closes. i could of used send keys which i originally tried but found that to be extremely unreliable. So after bugging a fellow colleague for countless hours he finally found a solution using AutoIT to automate the steps i needed performed and making a true dynamic solution to this problem that could easily be changed to work for any ones needs. The source script and compiled executable are attached.
Enjoy and thanks goes to Brian Dorsey for putting this together!