rajeshontheweb Posted May 19, 2009 Share Posted May 19, 2009 (edited) _ShutDownDialog() Func _ShutDownDialog() ; Rajesh V R ; An Undocumented dll function, thanks to nirsoft for revealing it... (and all those who posted it on google!) ShellExecute("rundll32.exe","shell32.dll,#60") EndFuncthis opens a standard shutdown dialog box for windows Edited May 20, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
youknowwho4eva Posted May 19, 2009 Share Posted May 19, 2009 I though I had seen this before, but all I could find in the search was thishttp://www.autoitscript.com/forum/index.ph...amp;hl=shutdown Giggity Link to comment Share on other sites More sharing options...
rajeshontheweb Posted May 19, 2009 Author Share Posted May 19, 2009 (edited) yeah i did search for it in the forums, thought it might have been posted as a dllcall or something, but this wasnt found. so posting it here for anyone who would like it. because, personally i have searched for this functionality earlier. and rather than closing progman, or shell object, this would be preferrable ? Edited May 19, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
youknowwho4eva Posted May 19, 2009 Share Posted May 19, 2009 It's bugging me because I'd swear I'd seen it before. But yes personally I'd prefer your method. I've seen computers where stopping processes doesn't do what you expect 100% of the time. Giggity Link to comment Share on other sites More sharing options...
rajeshontheweb Posted November 22, 2009 Author Share Posted November 22, 2009 (edited) guys, just found another way of triggering shutdown dialog this uses the Shell.application (thought it might be useful for cases where u are dealing with shell application object already and may not need to use shellexecute call seperately.. Dim $ObjShell $ObjShell = ObjCreate("Shell.Application") $ObjShell.ShutdownWindows() $ObjShell = "" Edited November 22, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now