Hello guys!
I have been experimenting with this InSim .NET library, it's really cool, but I've come across a problem which i have not seen anywhere explained.
I can't send two IS_BTN packets with one Send command like this:
InSim inSim = new InSim();
inSim.Initialize(new InSimSettings()
{
Host = "127.0.0.1",
Port = 29999,
});
inSim.Send(new IS_BTN()
{
BStyle = ButtonStyles.ISB_DARK,
ClickID = 0,
UCID = 255,
ReqI = 1,
L = 50,
T = 50,
W = 30,
H = 10,
Text = "heey"
}, new IS_BTN()
{
BStyle = ButtonStyles.ISB_DARK,
ClickID = 1,
UCID = 255,
ReqI = 2,
L = 50,
T = 60,
W = 30,
H = 10,
Text = "hooo"
});
It works perfectly if I send it once at a time, otherwise it throws an ArgumentException.
Why is that?