Sign in to follow this  
Followers 0
toxicvn

FF.au3 beta (program and documentation)

1 post in this topic

FF.au3 beta (program and documentation)

Dear Readers,

Just ask questions in other subjects, so this issue clearly remains here!

Many greetings

Stilgar

The current version of FF.au3 are here:

http://thorsten-willert.de/Themen/AutoIt-F...3/FF.au3/FF.au3

The current German documentation here:

http://thorsten-willert.de/Themen/AutoIt-F...rman/index.html

English documentation (by google)

http://thorsten-willert.de/Themen/AutoIt-F...lish/index.html

Sample programs (coming later in the documentation):

http://thorsten-willert.de/Themen/AutoIt-F...piele/index.php

Comparison table between FF and IE features:

http://thorsten-willert.de/Themen/AutoIt-F..._Functions.html

Unofficial version: (only for testing purposes)

http://thorsten-willert.de/Themen/AutoIt-F...tversion/FF.au3

Older versions

http://www.thorsten-willert.de/Themen/Auto...ionen/index.php

Needed for the latest version of Firefox AddOns MozLab:

http://hyperstruct.net/projects/mozlab

Projects:

FF.au3 - FireFox automation: Forum / FF - Page Analyzer

jEdit4AutoIt - IDE for AutoItScript: Forum / Homepage

Many greetings

Stilgar

ex1:

#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 0

If _FFSetGet($Socket,".forms[1].elements[0].value='" & $sUserName & "'") <> $sUserName Then Return 0

If _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 1

EndIf

Return 0

EndFunc

ex2:

#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!")

EndIf

Func _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 0

EndFunc ;==>_FFLogin

FF.au3

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  
Followers 0