Function Reference

_FFTabGetSelected

Gibt den Namen (label) oder den Index des aktuellen Tabs zurück.

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

 

Parameters

$sMode
Optional: Label oder Index:
index= (Default) Index (0-n) des Tabs.
label= Label des Tabs.

 

Return Value

Success: Returns Index or Label of the current Tab.
Failure: Returns -1 and sets @ERROR
@ERROR: 0 ($_FF_ERROR_Success)
4 ($_FF_ERROR_InvalidValue)

 

Remarks

 

Related

_FFTabAdd, _FFTabDuplicate, _FFTabClose, _FFTabCloseAll, _FFTabExists, _FFTabSetSelected

 

Example

#Include <FF.au3>

_FFStart()

If _FFIsConnected() Then
	; add a new tab with an URL
	_FFTabAdd("http://ff-au3-example.thorsten-willert.de/")
	sleep(3000)
	; add a new blank tab and bring it to front
	_FFTabAdd(default,true)
	Sleep(3000)
	; select the tab with "FF" in the label
	_FFTabGetSelected("FF","label")
	; shows the number of tabs
	MsgBox(64,"Number of tabs:",_FFTabGetLength())
	; closing all tabs except the current
	_FFTabCloseAll()
	Sleep(3000)
	; closes FireFox
	_FFQuit()
EndIf