Code: Select all
tell application "CoolTerm"
Write {"21890149533344330A"}
end tell
Maybe someone can help? Thanks.
hubert
Code: Select all
tell application "CoolTerm"
Write {"21890149533344330A"}
end tell
Code: Select all
tell application "CoolTerm"
# Setting up local variables
local w
local d
# Assigning the name of the CoolTerm window to w
set w to "CoolTerm_0"
# Open the serial port
if Connect w then
# Generate Data from a hex string
set d to Hex2Str ("21 89 01 49 53 33 44 33 0A")
# Send the data
Write {w, d}
else
display alert ("Not Connected")
end if
# Close the port
Disconnect w
end tell