Wählt eine Checkbox an oder ab.
#Include <FF.au3>
_FFFormCheckBox($vBox[, $bChecked = True[, $iBoxNameIndex = 0[, $sBoxMode = "index"[, $vForm = 0[, $sFormMode = "index"[, $bCheckBox = True]]]]]])
Parameters
$vBox | Index, Name, ID oder Value der CheckBox. | ||||||||||
$bChecked |
|
||||||||||
$iBoxNameIndex | Optional: Index der CheckBox (0-n), falls der Name mehrfach vorhanden ist. 0 = (Default) |
||||||||||
$sBoxMode |
|
||||||||||
$vForm | Optional: Name oder Index (0-n) des Formulars. 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
Bei allen Parametern kann auch das SchlüsselwortDefault
angegeben werden.
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