mIRC Homepage
Posted By: Ninko Script trigger another - 22/03/08 03:53 AM
Hi there,
Is it possible for a script to trigger another script? e.g. one script is needed to be run by many other scripts and it seems silly to copy that code into each and every script, plus a pain to edit any changes in this one common script. Is it maybe done with aliases? Sorry i'm rather new to this still, but I'm learning lol.

Thanks


Ninko
Posted By: Bekar Re: Script trigger another - 22/03/08 04:06 AM
Look at /signal command and the ON SIGNAL event.
Posted By: Mpot Re: Script trigger another - 22/03/08 04:30 AM
Maybe an alias?
Posted By: Riamus2 Re: Script trigger another - 22/03/08 12:06 PM
As suggested, look into using aliases. That's what they are there for. smile
Posted By: Ninko Re: Script trigger another - 23/03/08 02:06 AM
Ok, thanks for the replies. One other question, when using /signal, is there a way to stop it saying * signal '<signalname>' in the server window?

Thanks


Ninko
Posted By: RusselB Re: Script trigger another - 23/03/08 02:16 AM
Use .signal rather than /signal

Note: this will only work from a scripted version.

The . makes the command silent
Posted By: Bekar Re: Script trigger another - 23/03/08 08:04 AM
Originally Posted By: RusselB
Note: this will only work from a scripted version.

Eh? /.signal blah from an edit box is silent for me..
Posted By: Ninko Re: Script trigger another - 24/03/08 12:02 AM
Thanks RusselB, that did the trick!


Ninko
© mIRC Discussion Forums