Jump to content

Recommended Posts

Posted

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

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.

Posted

Not porn, I'm just not meant to be on after 10 at night, which isn't nearly late enough.

And I used this name becuase one I normally use on forums was taken and I couldn't think of anythink else so got a name from MSN contact :D

I couldn't find that, thanks :P

-Bob

Photoshop User and Noob AutoIt user.

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