-- card: 4687 from stack: in -- bmap block id: 5015 -- flags: 0000 -- background id: 2755 -- name: XCMD help ----- HyperTalk script ----- on openCard hide message box end openCard -- part 1 (field) -- low flags: 00 -- high flags: 0000 -- rect: left=10 top=52 right=330 bottom=501 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 2 -- text size: 10 -- style flags: 0 -- line height: 12 -- part name: -- part 2 (field) -- low flags: 00 -- high flags: 0000 -- rect: left=10 top=26 right=54 bottom=501 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 2 -- text size: 18 -- style flags: 1024 -- line height: 24 -- part name: -- part 3 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=466 top=307 right=336 bottom=502 -- title width / last selected line: 0 -- icon id / first selected line: 2162 / 2162 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Return ----- HyperTalk script ----- on mouseUp visual effect iris close pop card end mouseUp -- part 5 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=430 top=307 right=336 bottom=466 -- title width / last selected line: 0 -- icon id / first selected line: 9301 / 9301 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Next ----- HyperTalk script ----- on mouseUp visual effect wipe right go to previous card end mouseUp -- part contents for card part 2 ----- text ----- Serial Port XCMDs -- part contents for card part 1 ----- text ----- sendSPort «port»,«addLineFeeds»,«string» — This command sends the text string «string» to out the port. If «addLineFeeds» is "true", it inserts line feeds after any carriage returns in «string». SPortHasChar(«port») — This function returns "true" if the port has characters waiting or "false" if it does not. recvSPort(«port») — This function returns the next character available on the port. If none are available, it waits until one is available. recvUpTo(«port»,«terminationCharacter»,«timeOut»,«echo»,«edit») — This function allows for a wide variety of styles of input. It returns a string of characters received by the serial port. It returns all characters up to the «terminationCharacter» that are currently available or are received within the next «timeOut» 60ths of a second. «terminationCharacter» can be empty, in which case all available characters are returned. «timeOut» can be zero, in which case only currently available characters are returned. If «echo» is "true", the received characters are also sent out the output port, with line feeds inserted after carriage returns. If «edit» is "true", a backspace received will cause the last character of the input buffer to be removed and the sequence "backspace, space, backspace" to be sent out the output port (of course, backspace won't erase characters that were returned in a previous call).