Function Reference

_FFFormCheckBox

Checks or unchecks a CheckBox in a form.

#Include <FF.au3>
_FFFormCheckBox($vBox[, $bChecked = True[, $iBoxNameIndex = 0[, $sBoxMode = "index"[, $vForm = 0[, $sFormMode = "index"[, $bCheckBox = True]]]]]])

 

Parameters

$vBox Index, name, ID or value of the CheckBox.
$bChecked
Optional: State of the CheckBox:
True= (Default) Checked.
False= Unchecked.
$iBoxNameIndex Optional: CheckBox index (0-n), if the name is present on several occasions.
0 = (Default)
$sBoxMode
Optional: CheckBox mode of selection:
index= (Default) Index (0-n) of the CheckBox.
name= name of the CheckBox.
id= ID of the CheckBox.
value= value of the CheckBox.
$vForm Optional: Name or index (0-n) of the form.
0 = (Default)
$sFormMode
Optional: Form mode selection:
index= (Default) Index (0-n) of the form.
name= name of the form.
id= ID of the form.
$bCheckBox
Optional: mode of operation (for internal use only):
True= (Default) CheckBox.
False= RadioButton.

 

Return Value

Success: Returns 1
Failure: Returns 0 and sets @ERROR
@ERROR: 0 ($_FF_ERROR_Success)
3 ($_FF_ERROR_InvalidDataType)
4 ($_FF_ERROR_InvalidValue)

 

Remarks

For all parameters can also used the keyword Default.

 

Related

_FFFormOptionSelect, _FFFormRadioButton, _FFFormReset, _FFFormSubmit

 

Example

#Include <FF.au3>

_FFStart("http://ff-au3-example.thorsten-willert.de/")

If _FFIsConnected() Then
	Sleep(1000)
	_FFFormCheckBox("oliven", True, 0, "value", "Pizza", "name")
	Sleep(1000)
	_FFFormCheckBox("zutat", True, 1, "name", 0, "index")
	Sleep(1000)
	_FFFormCheckBox(2, True, 0, "index", 0, "index")
EndIf