Function Reference

_FFGetLength

Returns the length of the elements in $sMode

#Include <FF.au3>
_FFGetLength([$sMode = "links"])

 

Parameters

$sMode
Optional: The attribute to be evaluated.
links= (Default) Number of all links
images= Number of all images
forms= Number of all forms
frames= Total number of frames
anchors= Total number of anchor
styleSheets= Number of all StyleSheets
tabs= Number of all tabs
history= Length of the browser's history
applets= Number of all applets
embeds= Number of embedded objects
plugin= Number of browser plugins
html-tag= Number of the specified HTML-tag

 

Return Value

Success: Returns number of all objects
Failure: Returns 0 and sets @ERROR
@ERROR: 0 ($_FF_ERROR_Success)
8 ($_FF_ERROR_NoMatch)

 

Remarks



 

Example

#Include <FF.au3>

Global $sMsg = "", $aTmp

Global $aElements[12] = ["links", "images", "forms", "frames", "anchors", _
	"styleSheets", "tabs", "history", "applets", "embeds", "plugins", "br"]

_FFConnect()

If _FFIsConnected() Then
	For $i = 0 To UBound($aElements)-1
		$sTmp = _FFGetLength($aElements[$i])
		If Not @error Then
			$sMsg &= $aElements[$i] & ": " & $sTmp & @crlf
		EndIf
	Next
	MsgBox(64,"Found:",$sMsg)
EndIf