Jump to content

Add shutdown.


AJARBAS

Recommended Posts


btw, none of your options will workm because you have to press a key after hfslip finishes. if you don't, it will NEVER get to the shutdown command, unless you modify the script to skip that "press any key..." part.

Thanks for the reminder, try this version:

HFShut.cmd

@ECHO/|CALL HFSLIP-1.7.9.CMD
@SHUTDOWN /S /T 30

Link to comment
Share on other sites

btw, none of your options will workm because you have to press a key after hfslip finishes. if you don't, it will NEVER get to the shutdown command, unless you modify the script to skip that "press any key..." part.

Thanks for the reminder, try this version:

HFShut.cmd

@ECHO/|CALL HFSLIP-1.7.9.CMD
@SHUTDOWN /S /T 30

Thanks It's almost bedtime here in Brazil. Aahahah :w00t:

Link to comment
Share on other sites

  • 2 weeks later...

I normally shutdown the PC after I run HFSLIP just before I sleep. So I made a utility to do that.

This autoit utility will shutdown your PC after HFSlip finishes it's task.

You can run before or during hfslip runs (but not when it finishes)

When HFSlip finishes, an attempt to send a keystroke to close the console window is triggered.

15 secs grace period to cancel Forced Shutdown.

Does not requires any modification to hfslip-1.7.9-xxx.cmd

Can run from any folder you wish.

If you change your mind, can access thru systemtray to cancel this script. (Red icon)

Tested in XP with hfslip-1.7.9_beta_t.cmd (should also work with rest of OS version)

DetectHFend.exe

DetectHFend.exe

Size: 296.78 Kb (303,905 bytes)

MD5: C1452C422B0C56863BFE695CC54FD3B2

Autoit code:

Opt("WinTitleMatchMode", 2);2=subStr
opt("TrayIconDebug",1)
#Include <Misc.au3>
_Singleton(@ScriptName, 0)

Winwait ("Slipstreaming Complete")
$FT02=WinGetTitle ("- Slipstreaming Complete")
WinActivate ($FT02)
WinWaitActive ($FT02)
sleep (700)
Send ("{enter}")
sleep (1000)

For $i=15 to 0 Step -1; 15 secs to cancel shutdown
$Reply=msgbox (262180,"Shutdown PC in 15 secs...","Confirm Shutdown PC?"&@crlf& _
"Default Action is 'Shutdown' if no selection is made within 15 secs."& @crlf & _
$i& " sec",1); 1 sec timeout with Yes
If $Reply = 6 then shutdown (5); 5=Forced shutdown
If $Reply = 7 then Exit; User select 'No'
next
If @error -1 then shutdown (5)

Link to comment
Share on other sites

I normally shutdown the PC after I run HFSLIP just before I sleep. So I made a utility to do that.

This autoit utility will shutdown your PC after HFSlip finishes it's task.

You can run before or during hfslip runs (but not when it finishes)

When HFSlip finishes, an attempt to send a keystroke to close the console window is triggered.

15 secs grace period to cancel Forced Shutdown.

Does not requires any modification to hfslip-1.7.9-xxx.cmd

Can run from any folder you wish.

If you change your mind, can access thru systemtray to cancel this script. (Red icon)

Tested in XP with hfslip-1.7.9_beta_t.cmd (should also work with rest of OS version)

:w00t: Thanks

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

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