Jump to content

need help


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 :

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
Link to comment
Share on other sites

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:

Link to comment
Share on other sites

_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

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