First of all, I would like to say hi. I'm new to the forum. I am also very new to Lua based scripting. Now that with the introductions done, here's my question. I used another macro program which is not Lua based. The code is as follows:
Code: Select all
Begin
// Set this to the IP of the client where the bot is running
Variable.Set("BotIP1", "10.0.0.7")
Variable.Set("BotIP2", "10.0.0.8")
Function.Execute("loop")
end
function("loop")
begin loop("")
Keyboard.Wait for one of the following keys to be pressed("{<F9>}{<F10>}", "Command")
Function.Execute("{Command}")
end
function
function("{<f9>}")
begin
Variable.Evaluate (Text)("DNGEnter","Command")
Network.Send message (TCP)("{BotIP1}", "{Command}")
Network.Send message (TCP)("{BotIP2}", "{Command}")
end
function
function("{<f10>}")
begin
Variable.Evaluate (Text)("DNGExit","Command")
Network.Send message (TCP)("{BotIP1}", "{Command}")
Network.Send message (TCP)("{BotIP2}", "{Command}")
end
function
What it was doing is, when I press F9 on the main PC, it sends a TCP message to my botting PC telling it to Enter a Dungeon. And when F10 is pressed, it tells it to exit. So my question is, does MicroMacro has a similar function? Something to send TCP command and receive TCP commands?
Regards,
-Runner