Jump to content

Recommended Posts

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 :

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

post-60943-0-45983400-1308125334_thumb.p

Edited by findmyip
Posted

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. :huh2:

Posted

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 :huh2:

Posted

_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)

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
×
×
  • Create New...