Function Reference

_FFStart

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
Optional:
0= Connects to a running process
1= (Default) Creates a new process (new window if FireFox is always running)
2= Try to connect to a running process, if this fails, starting a new process
+8Starting FireFox with the parameter -no-remote
$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.
_FFLoadWait after this command is not necessary, because _FFStart is waiting until the page fully loaded.

 

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