Killzone21 Posted June 16, 2008 Share Posted June 16, 2008 Hi I want to build a autoit Script that simply automates something i do: the program should 1. open links i tell it to, which is a download 2. Download the file, which is a simply clicking yes to save. 3. Wait 40minutes 4. and then repeat the process again for the second Link Really simple huh? idk where to start, so please Guide me to some sort of tutorial, or explain how one could do write this program. Link to comment Share on other sites More sharing options...
Killzone21 Posted June 16, 2008 Author Share Posted June 16, 2008 Hi I want to build a autoit Script that simply automates something i do: the program should 1. open links i tell it to, which is a download 2. Download the file, which is a simply clicking yes to save. 3. Wait 40minutes 4. and then repeat the process again for the second Link Really simple huh? idk where to start, so please Guide me to some sort of tutorial, or explain how one could do write this program. Link to comment Share on other sites More sharing options...
nobbe Posted June 16, 2008 Share Posted June 16, 2008 there are alot of samples either in help file or in example code section for downloading files from internet Link to comment Share on other sites More sharing options...
TehWhale Posted June 16, 2008 Share Posted June 16, 2008 (edited) Make a file with all your downloads...and then use this! #Include <File.au3> Dim $Array _FileReadToArray(@ScriptDir&"\downloads.txt", $Array) For $i=1 To $Array[0] ShellExecute($Array[$i]) Sleep(750) Send("{enter}") Sleep(40*1000); 40 minutes Next ^^ Not garenteeded to work, but a small example. Edited June 16, 2008 by JasonB Link to comment Share on other sites More sharing options...
Clipper34 Posted June 16, 2008 Share Posted June 16, 2008 (edited) Heres something to get you started: ;Start the browser, change the browser if you want ShellExecute("iexplore.exe") ;Stop for 9 seconds for the browser to load Sleep(9000) ;Mouse click the address bar, the coords may be different on your computer MouseClick("left", 281, 51, 1, 5) ;Stop realquick Sleep(1000) ;Send backspace so it will delete the http://www.msn.com/?wl=true or whatever your main page is Send("{BACKSPACE}") ;Sleep for a second Sleep(1000) ;Now send the link into the address bar Send("http://www.google.com") ;Sleep again for half a second Sleep(500) ;Send ENTER to go to the address Send("{ENTER}") ;Now sleep so the page can load Sleep(9000) Hope that helps, Clipper34 Edited June 16, 2008 by Clipper34 Link to comment Share on other sites More sharing options...
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