Hi, I'm new to this and trying to use this software to send a message to an iRobot Create via serial port. From what I've read in documentation/posts, I set up a key mapping, so that when I press F5 the following script is run:
Sub Main
Print("Lalala")
Terminal.Print("Ladeeda")
DIM success
success = Terminal.SendText("128 132 139 2 0 0")
if success = TRUE then
MsgBox "Worked ok"
else
MsgBox "Not ok"
end if
End Sub
I'm new to VB, which explains the various print statements. However, after pressing F5, nothing happened. No printing, no message boxes, and no response from my robot. What am I doing wrong?
Thanks a lot,
When you embed a script in the keyboard mapping, the first line of the script hast to say:
VBSCRIPT
followed by the script.
Brian