SlimShady Posted November 13, 2004 Share Posted November 13, 2004 I was playing with the desktop just now. I did WinSetState("Program Manager", "", @SW_HIDE) and the desktop icons were hidden. Then I was wondering what would happen if I do: WinClose("Program Manager", "") It showed the shutdown dialog! Better than sending keys. Link to comment Share on other sites More sharing options...
scriptkitty Posted November 13, 2004 Share Posted November 13, 2004 don't like Shutdown ( code )?The shutdown code is a combination of the following values:0 = Logoff1 = Shutdown2 = Reboot4 = Force8 = Power down32= Suspend64= Hibernatei like options.For fun try closeing all the explorer.exe proccesses. There are a lot of fun tricks to be found. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
SlimShady Posted November 13, 2004 Author Share Posted November 13, 2004 I know about the shutdown function. I'm just posting an eXPerience. Link to comment Share on other sites More sharing options...
ezzetabi Posted November 14, 2004 Share Posted November 14, 2004 I think that the WinClose('Program Manager') thing was of common knownledge. Well, if not it always useful. I often use ALT-F4 for closing windows when focus is in the desktop... Link to comment Share on other sites More sharing options...
konan Posted November 15, 2004 Share Posted November 15, 2004 I think both are well, shutdown(code) can shutdown windows quickly, but it don't show the shutdown dialog. WinClose('Program Manager') can the shutdown dialog. 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