Sign in to follow this  
Followers 0
findmyip

any suggestion on better script?

6 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Oh lol ok. Well I had no troubles with it. What did you mean by half way through? did you mean when the counter hit 50? or did you mean when it goe to sending enter?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0