Jump to content

Please Help a Noobie


Recommended Posts

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

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

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 by JasonB
Link to comment
Share on other sites

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