findmyip Posted June 15, 2011 Share Posted June 15, 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 : 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 will always put "foldername" on BoxA and "send($count & ".txt") on BoxB $count = 1 Do send("foldername");(this goes to A BOX) send("{tab}") send($count & ".txt");(this goes to B BOX) send("{tab}") send("{ENTER}");(this press Download button) Send("+{TAB}") Send("+{TAB}") count = $count + 1 Until $count > 100 website looks like this: http://www.cpdtn.com/test.html Edited June 15, 2011 by findmyip Link to comment Share on other sites More sharing options...
smartee Posted June 15, 2011 Share Posted June 15, 2011 Hmm, your question seems a bit ambiguous, you can check out the IE*() functions in the helpfile and/or clarify your problem, give us a peek at the webpage source or URL perhaps. Link to comment Share on other sites More sharing options...
findmyip Posted June 15, 2011 Author Share Posted June 15, 2011 http://www.cpdtn.com/test.html looks like this Link to comment Share on other sites More sharing options...
smartee Posted June 15, 2011 Share Posted June 15, 2011 Ok, you can try hatching something together using the _IE*() functions, search them up in the helpfile. _IEFormElementSetValue() in particular may be useful. If you get stuck post back Link to comment Share on other sites More sharing options...
findmyip Posted June 16, 2011 Author Share Posted June 16, 2011 _IEFormElementSetValue() does this only work internet explorer webbrowser? because i am specifically using chrome because it's the only browser i know i can download files with a prompt window asking "do you want to download this file" (at least for this script to work) 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