<pre>on dummySerialScript  --------------------------------------------------------------------------  -- Configure the serial port.  configureSPort modemPort,baud300,data5,parityOff,stop20,echoOff  --------------------------------------------------------------------------  -- Because there is no hardware handshaking, turn off break signal.  breakSPort off  --------------------------------------------------------------------------  -- Returns the current configuration of the port as a comma-separated list.  -- The same keywords are used as in configureSPort.  put SPortConfiguration() into currentSerialPortConfiguration  --------------------------------------------------------------------------  -- This commands sets the size of the serial port input buffer.  -- Buffer size = 0 if the default port buffer is to be used.  setSPortBufferSize 0  --------------------------------------------------------------------------  -- The number of chars waiting to be read.  put charsAvailable() into numberOfCharsAvailable  --------------------------------------------------------------------------  -- The driver is left open although the buffers are still freed.  -- ie. Flush serial port after an answer is received from the peripheral.  closeSPort dontCloseDriver  --------------------------------------------------------------------------  -- Kills an in progress input on the port.  killSPort "in"  --------------------------------------------------------------------------  -- This function thinks of the incoming data as a series of bytes  -- and returns a comma-separated list of the values of the input bytes.  -- Thus, while recvChars would return "ab", recvNums will return "97,98".  -- example: get recvBytes(n)  -- USE IT TO GET AN ANSWER FROM THE PERIPHERAL.  put recvBytes(1) into userAnswerNumber  if userAnswerNumber is 0 then exit dummySerialScript  else send mouseUp to btn userAnswerNumber  --------------------------------------------------------------------------  -- The driver is closed and the buffers are freed :  closeSPort  --------------------------------------------------------------------------end dummySerialScript</pre>