jojosgotmojo Posted September 27, 2008 Posted September 27, 2008 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
Andreik Posted September 27, 2008 Posted September 27, 2008 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
jojosgotmojo Posted September 27, 2008 Author Posted September 27, 2008 If Not WinExists() ThenShutdown(8+1)EndIfWill that shutdown pc and turn off once download is finished?
Andreik Posted September 27, 2008 Posted September 27, 2008 Will that shutdown pc and turn off once download is finished?Put them in a while loop and set parameters for WinExists.
jojosgotmojo Posted September 27, 2008 Author Posted September 27, 2008 Put them in a while loop and set parameters for WinExists.Yeah prolly should note: IM A VB NOOB!
bluelamp Posted September 27, 2008 Posted September 27, 2008 Yeah prolly should note: IM A VB NOOB!VB ?
jojosgotmojo Posted September 27, 2008 Author Posted September 27, 2008 Visual Basic, isnt that what the main scripting auto it uses?
Andreik Posted September 27, 2008 Posted September 27, 2008 I use Firefox and this is the window that appear when I download something. When this window doesn't exist then download process is finished. You can check with WinExists if that window exists or not.
jojosgotmojo Posted September 27, 2008 Author Posted September 27, 2008 im confused can u pls just speak like ur speaking to an asian man, slowly and with simple words. Well im using safari atm and the window is called downloads any better?
bluelamp Posted September 27, 2008 Posted September 27, 2008 (edited) Visual Basic, isnt that what the main scripting auto it uses? If I understand your question correctly you mean that AutoIt is written in VB? It is written in C++, but the Syntax from AutoIt is like VB. Use the Code from Andreik: While 1 If Not WinExists("downloads") Then Shutdown(8+1) EndIf Wend Edited September 27, 2008 by bluelamp
jojosgotmojo Posted September 27, 2008 Author Posted September 27, 2008 ok so thats all i need? just making sure
Andreik Posted September 27, 2008 Posted September 27, 2008 ok so thats all i need? just making sureIf you cannot understand me (I`m not a very english speaker), you can look in the help file to give you some details about doing things.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now