Jump to content

Recommended Posts

Posted (edited)

G'day everyone

I'm a little unsure about which Shutdown code to use. I want something that will be the equivalent of yanking out the power cable (or, in a laptop, yanking out the power cable and ripping out the battery). Am I right that 28 should do the trick?

I wouldn't mind a shutdown that is less severe on the system, but it is important that the shutdown does take place and is not held up by some program that is not responding.

Will 29 be easier on my system? I mean, does AutoIt first try the less severe option, or does it go for the most severe option immediately?

Thanks

Samuel

Edited by leuce
  • Moderators
Posted

Hi, leuce. In the time it took you to write all that out, you could have tried out the various options and decided for yourself which one works best for you :)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

  On 10/5/2012 at 9:20 PM, 'leuce said:

I mean, does AutoIt first try the less severe option, or does it go for the most severe option immediately?

AutoIt does neither. It passes the flags to ExitWindowsEx (except if you use standby or hibernate, that's somewhere else).
Posted

Shutdown seems to be a popular function these days! I've seen at least 2 or 3 questions asking about the parameters and what they mean etc.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 10/5/2012 at 9:32 PM, 'JLogan3o13 said:

In the time it took you to write all that out, you could have tried out the various options and decided for yourself which one works best for you...

I actually considered that, but I didn't want to break the computer on an experiment.

Posted

  On 10/5/2012 at 9:36 PM, 'W4RD14L3R said:

I have used 12 all the time and had no problems with my netbook. It will definitly shut down your computer regardless of what is running.

Thanks!

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