Try using remote sensor connections.
Offline
scimonster wrote:
Try using remote sensor connections.
![]()
I know that, but how do I use Scratch sockets and send information to the sensor block?
Offline
I'm not a C# expert; but have a google for c# sockets, learn a little about socket programming, and have a look at the description of the protocol on the Scratch wiki.
Offline
No idea about that, sorry. You can definitely get the answer in Google.
Offline
You can create sensor-variables by sending this message to the Scratch program:
sensor-value "Variable Name" "Variable Value"
Though there is some binary data that is placed at the beginning which indicates the length of the message (for the above, it's 45). You can find out more about the protocol at the wiki. There don't seem to be any C# examples in the wiki at the moment so maybe you could make an article once you get it to work? Other languages are here. (Python, Objective-C, and Flash Action Script)
For dealing with sockets, you'll have to google that I'm afraid.
Offline