View Full Version : SendInterSCARMessage
Jason2gs
03-06-2007, 08:57 PM
Can someone explain to me how to work this out?
I take it it's so I can communicate with the rest of my SCAR scripts from a different comptuer?
In the function it has me put a script ID. Do I just put "ScriptID := 'My Script" at the top of the procedure?
Please help, I want to know everything! :p
Thanks,
Mike.
Open up scar, go to help and then choose manual, you have builtin functions explained there.
Jason2gs
03-06-2007, 10:03 PM
Alright. How do I get the ID that it wants?
Smartzkid
03-06-2007, 10:05 PM
ID is just so you won't get your messages mixed up..
SendInterSCARMessage('hi','yo wass up');
would not be received by
ReadInterSCARMessage('bye');
I think InterSCARMessages only work if both scar's are on the same computer...
You'd have to use php or something to do it from another pc. Also, if you used php, you could control everything from a website; you wouldn't even have to have scar on the controller pc!
Jason2gs
03-06-2007, 10:18 PM
Ah, that's neat. I thought it was the ID of the script.
Boreas
03-07-2007, 03:48 AM
Yes both scars on same computer. The IDs are so that you can have multiple 'conversations' if you know what I mean. It's almost like an UberGlobal variable, with the ID being the name of the variable and the message being the value assigned to it. I will release something in a while that uses ISM a lot, and you'll see how it's used.
Jason2gs
03-07-2007, 05:07 PM
How is this useful if you can only use it on one computer?
Wizzup?
03-07-2007, 05:34 PM
You could run 2 scripts with 1 mouse. :)
SendInterScarMessage('hi', 'saying hello');
WriteLn( ReadInterScarMessage('hi') );
Boreas
03-07-2007, 06:16 PM
You can also move the mouse in one continuous motion and monitor uptext/randoms/etc at the same time. (FindObj moves the mouse, then checks, then moves, then checks etc)
botmaster
03-07-2007, 08:31 PM
Yah, but it's kind of inconvenient. I hope that changes as SCAR divi comes by; tabbed scripting makes it a lot easier to run 2 scripts simultaneously.
If you want to send TCP/IP messages, use the socket feature of SCAR.
Jason2gs
03-07-2007, 08:53 PM
Socket feature? Where and what is that?
Smartzkid
03-07-2007, 09:44 PM
It lets you connect to remote computers using the tcp/ip protocol
to use it, you'd either have to be on the same network as the remote pc, using a virtual private network (such as hamachi), or using some kind of port forwarding for your router...
other than that, I really don't have much experience with network protocols, especially not in scar
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.