AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command >

AIC. - Artificial Intelligence Command

AIC.WaitRecButtonClose

Top


MiniRobotLanguage (MRL)

 

AIC.WaitRecButtonClose

Wait for record button close

 

Intention

 

The AIC.WaitRecButtonClose command pauses script execution until the recording button is closed/pressed. Used in conjunction with async recording operations to wait for user action.

 

Syntax

 

AIC.WaitRecButtonClose[|$$Timeout]

 

P1 - $$Timeout (optional) - Maximum time to wait in milliseconds (0 = infinite)

 

Example

 

' Start async recording with button

AIC.RecordAsyncButton|C:\Audio\rec.wav

 

' Wait for user to close the button

AIC.WaitRecButtonClose

 

' Process the recorded audio

AIC.TranscribeText|C:\Audio\rec.wav|$$Text

DBP.$$Text

 

Related Commands

 

- AIC.CreateRecButton - Create record button

- AIC.EndRecButton - End record button

- AIC.WaitButtonState - Wait for button state