Jump to content

_FFOpenURL()


Recommended Posts

Hi, a little question.

If I paste this javascript into the browser & hit enter, it works. But I have like 500 files to DLso I cant really paste this into the url bar always. Is there any other way to send this?

I tried also with my IE sample scripts, but none of them was able to press the damn button:

If someone is interested, then hire is Form info:[it needs to press this downloadbutton]

<FORM id=downloadform action="" method=post><INPUT type=hidden value=1 name=free> </FORM>
<INPUT type=hidden value=1 name=free>
<INPUT class=downloadbutton onclick="java script:gospunk();document.getElementById('downloadform').submit();return true;" type=button value="Download file">

Working sample until sending the javascript

;http://thorsten-willert.de/Themen/FFau3/Dokumentation_-_German/
#Include <FF.au3>

Global $sURL = 'http://uploading.com/files/LOCNVRHK/Elegy_ENG.rar.html'

_FFConnect()

If _FFIsConnected() Then
    
    _FFOpenURL($sURL)
    
    _FFFormSubmit(1)

    Sleep(100000)
    
    _FFOpenURL("java script:document.getElementById('downloadform').submit();")
    
EndIf

Exit
Edited by goldenix
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

_FFOpenURL("java script:document.getElementById('downloadform').submit();")
That's no URL so _FFOpenURL must fail.

If you wanna "click" on an element then just use _FFClick :)

<INPUT class=downloadbutton onclick="java script:gospunk();document.getElementById('downloadform').submit();return true;" type=button value="Download file">

e.g.

_FFClick("downloadbutton","class")
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...