mIRC Homepage

Open file on text

Posted By: Sakana

Open file on text - 19/09/14 02:31 PM

Hi, I'm running a trivia bot for twitch streaming, and I would like it to automatically open picture files on certain questions. How can this be accomplished?

Any help is greatly appreciated
Posted By: Nillen

Re: Open file on text - 19/09/14 03:09 PM

You could use the /run command.
/run path\image.png

It's not beautiful, but I'd expect it to be some long code if you wanna manipulate the windows viewer somehow
Posted By: Sakana

Re: Open file on text - 19/09/14 05:50 PM

Thanks, it works great now! There's just one last thing I can't figure out:

How do you get a bot to trigger on its own text? This appears to not work. I suppose I could have yet another client open to fix that, but that seems like an extremely clunky solution :P
Posted By: Nillen

Re: Open file on text - 19/09/14 06:03 PM

on input
Posted By: Sakana

Re: Open file on text - 19/09/14 09:03 PM

First I tried the crude method of using 2 clients, and just repeating this for every question:

on *:text:Trivia question:#: if ($nick = BotName ) { /run C:\Image.jpg }

It works fine when I type in the question manually, but nothing happens when the bot is running and asks the same question (Tat's trivia script). Why is this? frown

I also don't see how the above code can be transformed into ON INPUT.
Posted By: Loki12583

Re: Open file on text - 19/09/14 09:28 PM

You need to edit the trivia script.
© 2022 mIRC Discussion Forums