摘要 |
In one embodiment, a script starts automatic control of a remote device. The script issues a command to the device. The script causes a marker to be set at a position in an event buffer. The marker indicates events generated by the device should be stored in the event buffer. The action performed by the device results in events being asynchronously sent to the event buffer where the events are stored in the event buffer. The script initiates a wait for routine that waits for a target event to occur before execution of the script can continue and receives the events from the event buffer where the events are stored in the event buffer. The events are analyzed to determine if the target event occurred to allow the script to continue execution where the target event was stored in the event buffer before initiating the wait for routine.
|