|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.WaitButtonState |
Top |
MiniRobotLanguage (MRL)
AIC.WaitButtonState
Wait for button state change
Intention
The AIC.WaitButtonState command waits for a recording button to reach a specific state (pressed, released, etc.). Used to synchronize script execution with user interactions.
Syntax
AIC.WaitButtonState|$$State[|$$Timeout]
P1 - $$State - State to wait for (PRESSED, RELEASED, CLOSE)
P2 - $$Timeout (optional) - Maximum wait time in milliseconds
Example
' Wait for button to be pressed
AIC.CreateRecButton
AIC.WaitButtonState|PRESSED|10000
DBP.Button was pressed!
' Wait for button release with timeout
AIC.WaitButtonState|RELEASED|5000
Related Commands
- AIC.WaitRecButtonClose - Wait for button close
- AIC.CreateRecButton - Create record button
- AIC.SetRecButtonText - Set button text