Starts FireFox
#Include <FF.au3>
_FFStart([$sURL = "about:blank"[, $sProfile = "default"[, $iMode = 1[, $bHide = False[, $IP = "127.0.0.1"[, $iPort = 4242]]]]]])
Parameters
$sURL | Optional: URL "about:blank" = (Default) |
||||||||||
$sProfile | Optional: FireFox profil "default" = (Default) |
||||||||||
$iMode |
|
||||||||||
$bHide | Optional: Hide window false = (Default) true = Start hidden |
||||||||||
$IP | Optional: IP of the computer on which FireFox is running. . "127.0.0.1" = (Default) localhost |
||||||||||
$iPort | Optional: Port number of MozRepl. 4242 = (Default) |
Return Value
Success: | Returns 1 / $_FF_GLOBAL_SOCKET = Socket |
Failure: | Returns 0 / $_FF_GLOBAL_SOCKET = -1 / and sets @ERROR |
@ERROR: | 0 ($_FF_ERROR_Success) 1 ($_FF_ERROR_GeneralError) 3 ($_FF_ERROR_InvalidDataType) 6 ($_FF_ERROR_Timeout) |
Remarks
For all parameters can also used the keyword Default.
Related
_FFQuit, _FFConnect, _FFDisConnect, _FFIsConnected
Example
#Include <FF.au3> _FFStart("http://ff-au3-example.thorsten-willert.de/") If _FFIsConnected() Then Sleep(2000) _FFAction("presentationmode",true) Sleep(2000) _FFOpenURL("http://www.google.com") Sleep(2000) _FFAction("back") _FFAction("presentationmode",false) Sleep(2000) _FFOpenURL("chrome:bookmarks") Sleep(2000) _FFAction("alert","Bye bye ...") _FFQuit() EndIf