Permudious
New Member
- Dec 28, 2014
- 25
- 1
Hiya!
I am developing a tool which is using Tenet. I would like to send a command.
I have test this directly in Windows so the parameters should work, but I have no Idea how I can send a command when I press on a button.
This is the code below;
Please keep in mind;
IP = 127.0.0.1 (localhost)
Port = 4000
Username = not needed
Password = not needed
Thanks in advance!
I am developing a tool which is using Tenet. I would like to send a command.
I have test this directly in Windows so the parameters should work, but I have no Idea how I can send a command when I press on a button.
This is the code below;
Please keep in mind;
IP = 127.0.0.1 (localhost)
Port = 4000
Username = not needed
Password = not needed
C#:
using (var client = new Client("127.0.0.1", 4000, new System.Threading.CancellationToken()))
{
if (client.IsConnected)
{
var s = new System.Text.StringBuilder();
s.Append("-red");
client.Write(s.ToString());
}
}
Thanks in advance!