Öffnet einen neuen Tab
#Include <FF.au3>
_FFTabAdd([$sURL = "about:blank"[, $bSelect = True[, $bLoadWait = True]]])
Parameters
$sURL | (Optional) Öffnet die angegebene URL. "about:blank" = (Default) |
$bSelect | (Optional) Bringt den neuen Tab in den Vordergrund. true = (Default) |
$bLoadWait | (Optional) Wartet bis die Seite geladen ist. true = (Default) |
Return Value
Success: | Returns 1 |
Failure: | Returns 0 and sets @ERROR |
@ERROR: |
0 ($_FF_ERROR_Success) 3 ($_FF_ERROR_InvalidDataType) |
Remarks
Wird kein Protokoll mit angegeben wird automatisch "http://" vorangestellt.
Related
_FFTabDuplicate, _FFTabClose, _FFTabCloseAll, _FFTabExists, _FFTabSetSelected, _FFTabGetSelected
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