Jump to content

Window close then power off


Recommended Posts

Ok so i'm downloading something from the net and i want my pc to power off when its finished so i was wondering will this do or will it need more

If WinClose ( "Downloads" )
    then shutdown(9)
EndIf

If WinActive ( "Downloads" )
    then sleep( 10000 )
EndIf
If Not WinExists() Then

Shutdown(8+1)

EndIf

When the words fail... music speaks.

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
 Share

  • Recently Browsing   0 members

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