Jump to content
Sign in to follow this  
Fr3shY

Need Help W/ Form Submitter

Recommended Posts

Fr3shY

Hey.

I'm working a mininova uploader. I've currently been using IniRead as my method of getting the torrent location, name, description, from an ini file.

As of now, I've been using "Send("{TAB}")" to get down to the Torrent Location box. It's not working out because there page changes every few times and so far it hasn't worked after like 20 tries. This is at:

http://www.mininova.org/upload

I tried using "MouseClick("left", "x,y", "1")" but it wasn't working out for some reason. IT would just go to the job of the page on Mozilla.

Also, I need help inputting multiple values from an ini. Here is what is my script:

$num = 0
$num = $num + 1

$TorrentLocation = IniRead("Mininova.ini", "Torrent $num", "TorrentLocation")

I'm trying to figure out how to replace $num with 1,2,3, ect going up by one everytime so I can use any number of torrents without it being hardcoded into script.

If you need anything to be cleared up, just let me know. I really want to get this done asap so let me know anything I can do.

Thanks.

Fr3shY

Edited by Fr3shY

Share this post


Link to post
Share on other sites
dbzfanatic

If you're using Firefox try searching for FF.au3. For your read use

$TorrentLocation = IniRead("Mininova.ini", "Torrent" & $num, "TorrentLocation")

Share this post


Link to post
Share on other sites
Fr3shY

If you're using Firefox try searching for FF.au3. For your read use

$TorrentLocation = IniRead("Mininova.ini", "Torrent" & $num, "TorrentLocation")
Hmm.. looks like I forgot to use & to attach Torrent and $num. But, I don't really understand what options I can use with FF.au3. Do you mean I should use the MouseClick method to get down the page instead of Send("{TAB}")? And that too using FF.au3 as an include?

I need some clarification on this FF.au3 include.

Thanks.

Fr3shY

Share this post


Link to post
Share on other sites
dbzfanatic

From what I know of it, FF.au3 creates a com object within firefox that's able to be manipulated in more or less the same way the object of IE is. You should be able to fill in the field with the data from a single function without having to use mouseclicks or ControlSend() as long as you know the name of the field you wish to manipulate.

Share this post


Link to post
Share on other sites
Fr3shY

From what I know of it, FF.au3 creates a com object within firefox that's able to be manipulated in more or less the same way the object of IE is. You should be able to fill in the field with the data from a single function without having to use mouseclicks or ControlSend() as long as you know the name of the field you wish to manipulate.

Hmm.. well I believe the name of the field for example:

http://www.mininova.org/upload

The first field would be "Torrent file:" I'm guessing? Also, I tried reading thru the AutoIt help file on FF.au3 and I can't seem to find how to use like how to select the field, ect. Any ideas?

Thanks.

Fr3shY

Share this post


Link to post
Share on other sites
dbzfanatic

FF.au3 is a UDF and thus won't be in the helpfile. Just go through the code and it should be commented on its use. Also the name isn't the text you see so it's not "Torrent file:" like you thought, you have to check the html of the page. It's actually "torrent", this is the html that shows you.

<p>
<label for="form-torrent">Torrent file:</label>
  <input id="form-torrent" name="torrent" size="65" type="file">
</p>

Share this post


Link to post
Share on other sites
Fr3shY

FF.au3 is a UDF and thus won't be in the helpfile. Just go through the code and it should be commented on its use. Also the name isn't the text you see so it's not "Torrent file:" like you thought, you have to check the html of the page. It's actually "torrent", this is the html that shows you.

<p>
<label for="form-torrent">Torrent file:</label>
  <input id="form-torrent" name="torrent" size="65" type="file">
</p>
Hmm, okay I get that. I see what you're saying about checking through the source and finding out the name = blank. Btw.. I'm looking through FF.au3 right now. Edited by Fr3shY

Share this post


Link to post
Share on other sites
dbzfanatic

Hope you can find what you need. If you do post some examples for people who have the same problem so they can find an answer (and possibly attach FF.au3 for those who're too lazy to search ;) )

Share this post


Link to post
Share on other sites
Fr3shY

Hope you can find what you need. If you do post some examples for people who have the same problem so they can find an answer (and possibly attach FF.au3 for those who're too lazy to search ;) )

Sure thing. Thanks for your help.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.