Function Reference

_FFFrameEnter

Selects a frame, which all subsequent commands apply on.

#Include <FF.au3>
_FFFrameEnter($vFrame[, $sMode = "index"])

 

Parameters

$vFrame Name, ID or index (0-n) of the frame.
$sMode
(Optional) Mode of the frame selection:
index= (default) Index (0-n) of the frame.
id= ID of the frame.
name= Name of the frame.

 

Return Value

Success: Returns 1 and sets @extended to the index of the frame >=0
Failure: Returns 0 and sets @ERROR
@ERROR: 0 ($_FF_ERROR_Success)
3 ($_FF_ERROR_InvalidDataType)
4 ($_FF_ERROR_InvalidValue)
8 ($_FF_ERROR_NoMatch)

 

Remarks

 

Related

_FFFrameLeave

 

Example

#Include <FF.au3>

If _FFConnect() Then
	If _FFOpenURL("http://www.autoit.de") Then
		_FFFrameEnter(2)
		MsgBox(0,"Frame 2 URL", _FFCmd(".location.href") )
		_FFFrameLeave()
		MsgBox(0,"Top URL",_FFCmd(".location.href") )
	EndIf
EndIf