Forum

Send Message (Very ...
 
Notifications
Clear all

Send Message (Very new to this)

0 Posts
2 Users
0 Reactions
291 Views
(@kimberly)
New Member
Joined: 14 years ago
Posts: 1
Topic starter  

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,


   
ReplyQuote
(@bpence)
Member Admin
Joined: 12 months ago
Posts: 1375
 

When you embed a script in the keyboard mapping, the first line of the script hast to say:

VBSCRIPT

followed by the script.

Brian


   
ReplyQuote
Share: