Jump to content
Sign in to follow this  
BobiusMaximus

Shutdown Function...

Recommended Posts

Shutdown(6)  ;Force a reboot

This is all the helpfile gives me, is there a way to just shut down?

Because I was thinking of making a program I could have running in the background, so when I call a function with a hotkey(Shift+Esc or sth) it would automatically shut down my computer, because sometimes I'm on my PC and I have to shut it down quickly for reasons I won't go into.

So basically, how can you just shutdown? Is it something like Shutdown(5) or what?

-Bob


Photoshop User and Noob AutoIt user.

Share this post


Link to post
Share on other sites

sometimes I'm on my PC and I have to shut it down quickly for reasons I won't go into.

So mom does not see you looking at porn?

Anyway, re-read the help file. It explains all the shutdown options. If you just want to shut down the computer, use:

Shutdown (1)

This is from the help file:

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

Add the required values together. To shutdown and power down, for example, the code would be 9 (shutdown + power down = 1 + 8 = 9).

Standby or hibernate are ignored if other codes are set. They are also ignored under Win9x.


A little reading goes a long way. Post count means nothing.

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  

×
×
  • Create New...