Sign in to follow this  
Followers 0
SlimShady

Show Shutdown Dialog (WinXP)

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



don't like Shutdown ( code )?

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

i 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.

Share this post


Link to post
Share on other sites

I know about the shutdown function.

I'm just posting an eXPerience.

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0