mIRC Home    About    Download    Register    News    Help

Print Thread
Script trigger another #196709 22/03/08 03:53 AM
Joined: Jun 2004
Posts: 139
N
Ninko Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Jun 2004
Posts: 139
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

Re: Script trigger another [Re: Ninko] #196710 22/03/08 04:06 AM
Joined: Dec 2002
Posts: 503
B
Bekar Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Look at /signal command and the ON SIGNAL event.

Re: Script trigger another [Re: Bekar] #196711 22/03/08 04:30 AM
Joined: Apr 2007
Posts: 228
M
Mpot Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Maybe an alias?

Re: Script trigger another [Re: Ninko] #196722 22/03/08 12:06 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
As suggested, look into using aliases. That's what they are there for. smile


Invision Support
#Invision on irc.irchighway.net
Re: Script trigger another [Re: Riamus2] #196776 23/03/08 02:06 AM
Joined: Jun 2004
Posts: 139
N
Ninko Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Jun 2004
Posts: 139
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

Re: Script trigger another [Re: Ninko] #196780 23/03/08 02:16 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Use .signal rather than /signal

Note: this will only work from a scripted version.

The . makes the command silent

Re: Script trigger another [Re: RusselB] #196809 23/03/08 08:04 AM
Joined: Dec 2002
Posts: 503
B
Bekar Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Originally Posted By: RusselB
Note: this will only work from a scripted version.

Eh? /.signal blah from an edit box is silent for me..

Re: Script trigger another [Re: RusselB] #196843 24/03/08 12:02 AM
Joined: Jun 2004
Posts: 139
N
Ninko Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Jun 2004
Posts: 139
Thanks RusselB, that did the trick!


Ninko