Notifications
Clear all

[Closed] sending text messages in network

Hello everyone;
is it possible to send text messages using max script, to another pc in network?
im thinking about that, if its possible i want to send commands like exit max, shutdown computer etc… or a simple chat window to send messages in the office , i guess it will be good:) but i dont know is it possible or not? any ideas?
*sory for bad English

7 Replies

DOSCommand “net send PC_Name Message_Text”
To use this, make sure that Messenger service is running, if not run then run net start messenger

hi DeKo-LT;
its ok to send thank u about that but what about the reciving it?
for ex;
i sent: DOSCommand “net send pc12 “test message” “
and then its client turn? what should we use to recive it
ex: on message recived then messagebox(recived messge)? ehat should we use?
any idea? thanks again:)

 PEN

I think if you wanted to do this with Max script, which would be very limited, why not install MSN internaly, then it would be best to have Max check at intervals for information that you store on the network and display it.

Hello PEN;
MSN will be best im sure that but i wont use this only to chatting. i want to compare the commands with the sent textes, like;
if recived_text = “shutdownmax” then exit max;
i m not a master on max script i m only curious about it…

 PEN

Well that would be tricky that is for sure. You could do something like this that I have whipped up for you just for fun.

http://paulneale.com/temp/PEN_MaxChat.ms

Just run the file on two or more computers and on one create a new log file and then press connect. Connect to that same log file on all machines and you can chat between Max.

There are lots of limitations with what I have setup as I did it over breakfast for the hell of it.

I would think that you could also issues commands to Max in the same way and have it execute the string. I’m not sure that I would want this running all the time as it is always having to check and read a file at the moment to know that something has changed.

thank u so much for the example PEN:thumbsup:
i couldnt try it yet cos im in the office and cant use msn:)
i will write again from my home thanks again

 PEN

This isn’t MSN, it is just based on Max Script. You can run it any where you have Max running. Just lanuch two copies of Max on the same machine. This code is untested!