sambalec Posted April 2, 2009 Share Posted April 2, 2009 Hello ! On a web page, i want to use a FF.au3 fonction to click on a link who called "Login Now", how can I do ? Thanks a lot ! Link to comment Share on other sites More sharing options...
Stilgar Posted April 2, 2009 Share Posted April 2, 2009 Hello, _FFClickLink("Login Now","text") The text is searched as substring. jEdit4AutoIt PlanMaker_UDF Link to comment Share on other sites More sharing options...
sambalec Posted April 2, 2009 Author Share Posted April 2, 2009 (edited) Many thanks Stilgar ! You're a very good man ! And thank you for your very fast help and for this script, wonderfull script ! Function is good, the click works but a Login popup appears and others fonctions doesn't work on this popup, how can I configure FF.au3 functions on the popup after appearance ? Sambalec Edited April 2, 2009 by sambalec Link to comment Share on other sites More sharing options...
sambalec Posted April 2, 2009 Author Share Posted April 2, 2009 (edited) I found a small bug with this url : http://00.netcourrier.com/, function doesn't load on firefox... why ?CODE#include <FF.au3>_FFStart("http://www.google.fr")If _FFConnect() Then If _FFOpenURL("http://www.google.fr") Then Sleep(500) _FFOpenURL("http://lol.netcourrier.com") Sleep(500) _FFOpenURL("http://00.netcourrier.com/") EndIfElse MsgBox(64,"Error","Can't connect to FireFox")EndIfI think that the problem caused by 00 after http://. An idea to resolve it ? Edited April 2, 2009 by sambalec Link to comment Share on other sites More sharing options...
Stilgar Posted April 3, 2009 Share Posted April 3, 2009 Just for information (solutions depending on chat) To work on a popup-window: _FFStart() If _FFIsConnected() Then _FFOpenURL("http://...../") _FFClickLink("Ajouter un commentaire","text") ;popup appears... WinWaitActive("Se connecter","",5) _FFWindowSelect() ; selects the last opened window from FF _FFLoadWait() _FFSetValueByName("need_login_form_login","test") ; .... _FFWindowClose() ; if it's not closed ; ... working again on the "main" window EndIf If _FFOpenURL doesn't work, you can use _FFCmd(".location.href='http://...'") instead. jEdit4AutoIt PlanMaker_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now