quote:
Originally posted by Huhu_Manix
I think this following code will help you :
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if(Message.substring(0, 4)=="!do ") ChatWnd.SendMessage(Message.substring(4));
}
And together with that you make it EXTREMELY INSECURE and a big safety hazzard for your own computer as anyone can simply do anything they want now with the account this script is running on. Including removing files and yes even screwing up your whole PC.
phuzz,
At least a few checks should be done before allowing the command to be passed. The most important check being the use of
Origin to check on your email address. Also include a password scheme so only you can envoke the commands. And check if the messages aren't send from a multi-person convo...
There are a few remote controlling scripts on the forums already (which include the needed safety measurements), check those out instead, they are exactly what you need. Search forums with keyword
remote:
eg:
[Release] RemoteAccess, Password protected
[Release] RemoteController
[beta] PlusRemote