AutoItKing Posted March 10, 2006 Share Posted March 10, 2006 (edited) Here's a UDF I made that closes all windows and then either logs off, shuts down, closes all windows and then leaves a few open, or just close all windows. ;=============================================================================== ; ; Description: Close all windows according to $sd_method ; Syntax: _ShutDown($sd_method, $sd_leaveopen) ; Parameter(s): $sd_method - ===================================================== ; method 0- close all windows and log off ; method 1- close all windows and shutdown ; method 2- close all windows and reboot ; method 3- close all windows ; method 4- close all windows except for $sd_leaveopen ; ===================================================== ; $sd_leaveopen - "Window Title|Another|and one more" ; ; Requirement(s): $sd_method ; Return Value(s): On Success - None ; On Failure - None ; Author(s): AutoItKing <bendudefu [at] aim [dot] com> and Danny35d ; Note(s): Use with caution! ; ;=============================================================================== _ShutDown.au3 Previous downloads: 500+ _ShutDown_test.au3 Edited May 25, 2007 by AutoItKing http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script] Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now