mIRC Homepage

Can I read input.txt as a message from #chan?

Posted By: KubosKube

Can I read input.txt as a message from #chan? - 17/07/20 01:52 AM

Small-Title Size limit strikes again!

Anyways, I am working on a set of scripts aimed at Twitch Streaming, and for those not in the know, the Chat Box is a huge deal over there.

I have a script currently that we'll refer to as the Death Counter. I can influence the counter by saying messages in chat. For example, typing "!death set 40" tells mIRC to update the death counter value in an .ini file somewhere to "40."

However, a counter for death-intensive games where you die a lot in a short amount of time would understandably flood chat.

However however, I can make some third-party tools write text directly to a text file, bypassing the public chat completely, and I wanted to ask you guys if the following idea is possible:

Can I parse a line of text from "Text-Input-Source.txt" as if it was an incoming message from the channel "#Channel-Name-Here"?
Posted By: maroon

Re: Can I read input.txt as a message from #chan? - 17/07/20 02:19 AM

perhaps you want /filter with the -fk switches, where the -k replaces the output file/window with an alias
https://en.wikichip.org/wiki/mirc/commands/filter
© 2022 mIRC Discussion Forums