Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...