Zayik / CommandSender

Stream Deck plugin for sending UDP/TCP messages from a key press.
MIT License
15 stars 2 forks source link

TCP Command not working #11

Closed rwatkinsii closed 2 years ago

rwatkinsii commented 2 years ago

If i send my command with packet sender, it works and if i send it from the original application it works. If i send it from your software from the stream deck it does not. I am attaching the Wireshark images that show it is somehow changing. Failed Successful

Zayik commented 2 years ago

Hey @rwatkinsii Thanks for your patience as I finally had a chance to look into this.

It took me a while to figure out what the heck was going on, and luckily I've done just that!

The behavior you are seeing isn't actually an issue with Command Sender, but more of type formatting issue. The stream deck plugin fields that you type stuff in is html-based.

When you try to input the string "85</ PST>\r", it is completely considering that a literal string.

You'll notice the trouble maker area is the /r. This is a carriage return. However, in html, if you want to use these special characters, you need to use its escape sequence. image

So in command sender, you end up forming that string as the following: image

When using other programs such as Packet Sender or the original application, it is written as a typical string and isn't html-based, so that \r is being processed as a carriage return instead of two characters '/' and 'r'.

Please let me know if that resolves your issue.

Thanks for your interest!