Jump to content

How to use autoit to load link in firefox


Recommended Posts

I want to log in the website use firefox. The url is 

after log in I want to download the pdf use firefox
Can u help me? Especially how to log in ?
name: loginname
password: 123456 
above is not a correct password, just for example.
and the pdf can not download directly. Only can download by log in firstly.
 
Link to comment
Share on other sites

this code below will log you into facebook
to download the pdf just creat a link button
or simly ad a url to your script for automated download
i hoop this helped

#include <ff.au3>

Local $uName="The_E-Mail_adress_to_your_facebook_account"
Local $Pwd="Your facebook password"

_FFstart()

If _FFConnect(Default, Default, 3000) Then
 _FF_AutoLogin($uName, $Pwd, "www.facebook.com","","keypress")
 if _FFLoadWait() Then MsgBox("","Your Facebook is loaded","OK")
endif

Link to comment
Share on other sites

#include <ff.au3>

Local $uName="CHANGE ME The_E-Mail_adress_to_your_facebook_account"
Local $Pwd="CHANGE ME Your facebook password"

_FFstart()

If _FFConnect(Default, Default, 3000) Then
 _FF_AutoLogin($uName, $Pwd, "CHANGE ME www.facebook.com","","keypress")
 if _FFLoadWait() Then MsgBox("","Your CHANGE MEFacebook is loaded","OK")
endif

JUST CHANGE THE CHANGE ME

I HOPE THIS HELPED

Link to comment
Share on other sites

YOULL

HAVE TO TRAT IT LIKE A GUI

WIN TITLE MATCH MODE AND SO ON

EASY REALLY

WHY NOT USE IE THO

I am not native English speaker, But I can understand simple English.

I have already consider to use IE. but before download the pdf, there is a block You have to choose save open cancel. And my software is run on server. I can not use mouse move click etc. I cannot  click save button which IE shows after put pdf link into IE. However I think firefox do not shown save cancel open button etc. firefox can just download pdf file. So I have to choose firefox to download pdf.

Well, if anyone can help me to download pdf by IE. That is ok. But how to click the save Button on Server 2008 R2 enviorment?

Link to comment
Share on other sites

post-77187-0-84394500-1427800953_thumb.p

just like this save button (I take this pic on win7). But my autoit run on server.

sometime when I use

__IECREATE("YOUR URL",?)

the pdf save button shown to another type. I will screen to you another time.

Edited by sex123
Link to comment
Share on other sites

Can you describe what issues you ran into with FF.au3? 

 

I remember that I use ff.au3 and then firefox start, but sometimes after firefox started, no reaction do next. If you want to know the exact reaction on my firefox, I have to use that udf again. But I am totally sure that udf do not work well on my pc becuase I tried for about one month, finally I gave up!

Link to comment
Share on other sites

You could also try logging into the website with the _IE functions and then use INetGet() to download the files.

The latest version of FF.au3 can be found >here.

 

I think INetGet() can not work well because this kind of download need cookie? Am I right? You have to log in first and the download it. So I have to download it by browser such as ie and firefox.

I cannot find any example about ff.au3.

I have download ff.au3 now, where is the ff.au3 example? I can not open the author website now. http://www.thorsten-willert.de/

Link to comment
Share on other sites

INetGet should work if you use an embedded browser (_IECreateEmbedded).

P.S. That website is working fine for me.

 

Can you do me a favor to upload the example to me to another netdisk so I can download it to test ff,au3 ?

Link to comment
Share on other sites

Sorry, but I'm not sure what example you are referring to. You can search the forum for some threads containing example code.

 

ok does not matter. I SHALL WAIT. I DO NOT WANT TO WAST TIME ON INSTALL AND TEST. I HAVE ALREADY TEST ONCE. FF.AU3 DOES NOT WORK WELL, I AM TOTALLY SURE.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...