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 |
|
||||||||||
$iBoxNameIndex | Optional: CheckBox index (0-n), if the name is present on several occasions. 0 = (Default) |
||||||||||
$sBoxMode |
|
||||||||||
$vForm | Optional: Name or index (0-n) of the form. 0 = (Default) |
||||||||||
$sFormMode |
| ||||||||||
$bCheckBox |
|
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