I figured this out for someone on the support forum.
I don't know if anyone else will find a use for it but I thought I'd throw it up anyway.
It quite simple sets the value in:
Control Panel>Power Options>Advanced Tab>When I Close The Lid of My Portable Computer
You have three options: Do Nothing , Standby , Hibernate
Enjoy.
Kenny
#cs --------------------------------------------------------------------------------------
AutoIt Version: 3.2.13.11 (beta)
Author: Kenn