lilandywandy 0 Posted March 18, 2005 HotKeySet("{PAUSE}", "mExit") MouseClick("left", 551, 23, 1) While 1 Send("{F3}") Sleep(1080000) Send("{F3}") Sleep(1080000) Send("{F3}") Sleep(1080000) Send("{F6}") WEnd Func mExit() Exit EndFunc where and what should i put so that the program shuts off computer when its done the commands? Share this post Link to post Share on other sites
ken82m 3 Posted March 18, 2005 Shutdown (X) Replace X with one of the following The shutdown code is a combination of the following values: 0 = Logoff 1 = Shutdown 2 = Reboot 4 = Force 8 = Power down 32= Suspend 64= Hibernate Add the required values together. To shutdown and power down, for example, the code would be 9 (shutdown + power down = 1 + 8 = 9). My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." Share this post Link to post Share on other sites