Sets a config entry
#Include <FF.au3>
_FFPrefSet($sName, $vValue)
Parameters
| $sName | Name of the config entry. |
| $sName | New value. |
Return Value
| Success: | Returns 1 and sets @EXTENDED |
| @EXTENDED: | Old value. |
| Failure: | Returns 0 and sets @ERROR |
| @ERROR: |
0 ($_FF_ERROR_Success) 3 ($_FF_ERROR_InvalidDataType) 4 ($_FF_ERROR_InvalidValue) 8 ($_FF_ERROR_NoMatch) 9 ($_FF_ERROR_RetValue) |
Remarks
The datatype is calculated based on the config entry.
Links
https://developer.mozilla.org/en/nsIPrefBranch
Related
_FFPrefGet, _FFPrefReset
Example
#Include <FF.au3> _FFConnect() If _FFIsConnected() Then ; changing HTTP-proxy port: _FFPrefSet("network.proxy.http", "localhost") _FFPrefReset("network.proxy.http") ; disabling image loading _FFPrefSet("permissions.default.image", 2) MsgBox(64, "Old value:", @extended) MsgBox(64, "Current value:", _FFPrefGet("permissions.default.image")) ; reset to old value _FFPrefReset("permissions.default.image") ; reading prefs MsgBox(64, "Reseted value:", _FFPrefGet("permissions.default.image")) EndIf