Opens a new URL
#Include <FF.au3>
_FFOpenURL($sURL[, $bWait = True])
Parameters
$sURL | URL or "file:", "about:" or "crome:" (+ address or Shortcut) |
$bWait | Optional: Waits until the page is loading. True = (Default) |
Return Value
Success: | Returns 1 |
Failure: | Returns 0 and sets @ERROR |
@ERROR: |
0 ($_FF_ERROR_Success) 3 ($_FF_ERROR_InvalidDataType) 8 ($_FF_ERROR_NoMatch) |
Remarks
If no protocol is specified the prefix "http://" is added.
Related
_FFTabAdd
Example
#Include <FF.au3> If _FFConnect() Then If _FFOpenURL("http://www.google.de") Then MsgBox(64,"","www.google.de is loaded") Else MsgBox(64,"","Can't open www.google.de") EndIf Sleep(3000) ; Opens the browser-history in the current tab _FFOpenURL("chrome:history") Else MsgBox(64,"Error","Can't connect to FireFox") EndIf