I was perusing some GMCP documentation, having decided to try and torture myself. I found a set of them specifically related to communication, most notably Comm.Channel.Start() and Comm.Channel.Text
I was wondering if I would be able to use these to snag text without using endless regexes that don't always capture all the text. Anyone had any success / tips on how to use these?
0
Comments
I'm at work right no, so I don't have actual examples, but can deliver them when I get home in the evening.
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof
Unless I'm missing something the scripts from that thread do not eliminate the need to snag text without using regexes.
It basically just uses the Comm.Channel gmcp event to unlock a trigger with the regexes when the event starts. Then it locks it back when it ends. How this is better than not using gmcp is beyond me. Why bother with the middleman when you can just capture directly off a trigger that really should be always on.
The only time I've had a problem not capturing stuff with regular regexes, is when I was trying to use some kind of script to parse text. (which was probably my fault)
The only benefit I can think of is if the regexes someone is using are capturing too much stuff. It would be handy to have the trigger only open when it's an official gmcp comm event. But I mean... tighten up that regex tho.
Examples.come later, I swear!
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof