OK, maybe it should be even easier. What about a function that implements this code:
Code:
function ComServer
if( con == nil ) then
con,err = comserv.NewConnection( '192.168.0.25', 20005, 'girder',nil);
win.Sleep (1000)
con:SendEvent(param1,200,1,'a','b',nil,'d')
else
win.Sleep (1000)
con:SendEvent(param1,200,1,'a','b',nil,'d')
win.Sleep (1000)
end
end
So this is all the code to send to the computer with that IP:
Code:
ComServer("test")
I know that's doable, but for me?
ops:
I get this:
Code:
[string "Scripting"]:2: `(' expected near `if'