toxicvn Posted December 19, 2008 Share Posted December 19, 2008 FF.au3 beta (program and documentation)Dear Readers,Just ask questions in other subjects, so this issue clearly remains here!Many greetingsStilgarThe current version of FF.au3 are here:http://thorsten-willert.de/Themen/AutoIt-F...3/FF.au3/FF.au3The current German documentation here:http://thorsten-willert.de/Themen/AutoIt-F...rman/index.htmlEnglish documentation (by google)http://thorsten-willert.de/Themen/AutoIt-F...lish/index.htmlSample programs (coming later in the documentation):http://thorsten-willert.de/Themen/AutoIt-F...piele/index.phpComparison table between FF and IE features:http://thorsten-willert.de/Themen/AutoIt-F..._Functions.htmlUnofficial version: (only for testing purposes)http://thorsten-willert.de/Themen/AutoIt-F...tversion/FF.au3Older versionshttp://www.thorsten-willert.de/Themen/Auto...ionen/index.phpNeeded for the latest version of Firefox AddOns MozLab:http://hyperstruct.net/projects/mozlabProjects:FF.au3 - FireFox automation: Forum / FF - Page AnalyzerjEdit4AutoIt - IDE for AutoItScript: Forum / HomepageMany greetingsStilgarex1:#include <FF.au3>; Login Commands_FFSetValueByName($Socket, "UserName", $sPassName)_FFSetValueByName($Socket, "PassWord", $sPassWord)_FFFormSubmit($Socket, "LOGIN", "name"); Login Script$sPassName = ""$sPassWord = ""$Socket = _FFConnect()If $Socket > -1 Then_FFOpenURL($Socket, "http://www.autoitscript.com/forum/index.php?act=Login&CODE=00")_FFSetValueByName($Socket,"UserName",$sPassName)_FFSetValueByName($Socket,"PassWord",$sPassWord)_FFFormSubmit($Socket,"LOGIN","name")EndIf; Login Function (basierend auf Vorlage in INI)Func _FFLogin(ByRef $Socket, $sUserName, $sPassWord, $sSuccses)If $Socket > -1 Then_FFOpenURL($Socket, "http://www.autoitscript.com/forum/index.php")If @error Then Return 0If _FFSetGet($Socket,".forms[1].elements[0].value='" & $sUserName & "'") <> $sUserName Then Return 0If _FFSetGet($Socket,".forms[1].elements[1].value='" & $sPassWord & "'") <> $sPassWord Then Return 0_FFFormSubmit($Socket,1)If @error Then Return 0_FFLoadWait($Socket)If _FFAction($Socket,"search",$sSuccses) Then Return 1EndIfReturn 0EndFuncex2:#region Includes#include <FF.au3>#endregion Includes$Socket = _FFConnect()If _FFLogin($Socket, "Stilgar", "*******", "Du wurdest erfolgreich angemeldet") Then MsgBox(64, "", "Login erfolgreich!")Else MsgBox(48, "", "Login fehlgeschlagen!")EndIfFunc _FFLogin(ByRef $Socket, $sUserName, $sPassWord, $sSuccses) If $Socket > -1 Then _FFOpenURL($Socket, "http://autoit.de/index.php?form=UserLogin") If @error Then Return 0 If _FFSetGet($Socket, ".forms[0].elements[0].value='" & $sUserName & "'") <> $sUserName Then Return 0 If _FFSetGet($Socket, ".forms[0].elements[1].value='" & $sPassWord & "'") <> $sPassWord Then Return 0 _FFFormSubmit($Socket, 0) If @error Then Return 0 _FFLoadWait($Socket) If _FFAction($Socket, "search", $sSuccses) Then Return 1 EndIf Return 0EndFunc ;==>_FFLoginFF.au3 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