findmyip Posted June 14, 2011 Share Posted June 14, 2011 (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 Edited June 14, 2011 by findmyip Link to comment Share on other sites More sharing options...
disposable Posted June 14, 2011 Share Posted June 14, 2011 (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 June 14, 2011 by disposable Link to comment Share on other sites More sharing options...
Mikeman27294 Posted June 14, 2011 Share Posted June 14, 2011 (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 June 14, 2011 by Mikeman27294 Link to comment Share on other sites More sharing options...
findmyip Posted June 14, 2011 Author Share Posted June 14, 2011 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$countand 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 More sharing options...
Mikeman27294 Posted June 14, 2011 Share Posted June 14, 2011 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? Link to comment Share on other sites More sharing options...
findmyip Posted June 14, 2011 Author Share Posted June 14, 2011 (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 June 14, 2011 by findmyip 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