Jump to content

any suggestion on better script?


Recommended Posts

i've been using this method to download using the website in the picture but many times the script fails and gets stuck

i leave the script for 1 hour and when i come back and i see (all random)

1. sometimes the script works fine till end to 100

2. sometimes, i see "foldername" or "##.txt" showing up in addressbar and gets stuck in the middle of script

3. sometimes i see "##.txt" showing up in boxA and "foldername" showing up in boxB and gets stuck in the middle of script

i think you get the idea.

is there way to make a better script that won't fail in the middle and get stuck

$count = 1

Do

; Print the count

send("foldername");(this goes to A BOX)

sleep(1000)

send("{tab}")

sleep(1000)

send($count & ".txt");(this goes to B BOX)

sleep(1000)

send("{tab}")

sleep(1000)

send("{ENTER}");(this press Download button)

sleep(9000)

Send("+{TAB}")

sleep(1000)

Send("+{TAB}")

sleep(1000)

; Increase the count by one

$count = $count + 1

Until $count > 100

post-60943-0-98849700-1308049687_thumb.p

Edited by findmyip
Link to comment
Share on other sites

You might want to look at more advanced (and more dependable) ways of achieving your goal. I suggest you take a look at the _IE udf's. Just open your Auotit Help File and search for "_IE" in the index.

Edited by disposable
Link to comment
Share on other sites

send("$count & ".txt");(this goes to B BOX)

You have this.

send($count & ".txt");(this goes to B BOX)

You want this.

What has happened, is that you have opened a string that then contained

"$count & "

but what wou wanted was the variable

$count

and the string

".txt"

but you had the variable as a string, and what you wanted as a string, recognised as a file attachment when you wanted the variable, with the file attachment as a string.

If you look at your line, you will notice you had 3 " characters.

oh... and here is your code, edited to work. I also added a sleep function at the start so that it would not start instantly, rather, give you time to swap windows and click on the text box. Enjoy.

$count = 1
sleep(2000)

Do
; Print the count
send("foldername");(this goes to A BOX)
sleep(1000)
send("{tab}")
sleep(1000)
send($count & ".txt");(this goes to B BOX)
sleep(1000)
send("{tab}")
sleep(1000)
send("{ENTER}");(this press Download button)
sleep(9000)
Send("+{TAB}")
sleep(1000)
Send("+{TAB}")
sleep(1000)

; Increase the count by one
$count = $count + 1

Until $count > 100
Edited by Mikeman27294
Link to comment
Share on other sites

send("$count & ".txt");(this goes to B BOX)

You have this.

send($count & ".txt");(this goes to B BOX)

You want this.

What has happened, is that you have opened a string that then contained

"$count & "

but what wou wanted was the variable

$count

and the string

".txt"

but you had the variable as a string, and what you wanted as a string, recognised as a file attachment when you wanted the variable, with the file attachment as a string.

If you look at your line, you will notice you had 3 " characters.

sorry that was just a typo, i already know this.

Link to comment
Share on other sites

i leave the script for 1 hour and when i come back and i see (all random)

1. sometimes the script works fine till end to 100

2. sometimes, i see "foldername" or "##.txt" showing up in addressbar and gets stuck in the middle of script

3. sometimes i see "##.txt" showing up in boxA and "foldername" showing up in boxB and gets stuck in the middle of script

i think you get the idea.

Edited by findmyip
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...