mIRC Homepage
Posted By: mircftw on input - 18/03/10 07:23 PM
on input event only works if you are typing and pressing enter

is their a way to make it work when other scripts are doing /msg to a channel?
Posted By: Wims Re: on input - 18/03/10 07:45 PM
The only way is to recreate the /msg alias, like :

Code:
alias msg {
echo -a /msg has been used
!msg $1-
}

Posted By: DJ_Sol Re: on input - 19/03/10 02:23 PM
Well you could make your own msg alias I guess, but really, the script is there and available to you to edit how you like. I suggest if you want a script to do a certain something when it messages the channel, write it in the script.

I'm sure there are some reasons where overriding mIRC's msg alias is neccesary, I just didn't see any in your post.
Posted By: Wims Re: on input - 19/03/10 07:16 PM
Are you answering to me because I'm suggesting to override the command or was it addressed to the OP ?

Anyway
Quote:
I suggest if you want a script to do a certain something when it messages the channel, write it in the script.
I think this is the point, he doesn't want to go through all scripts and edit them manually.
Posted By: DJ_Sol Re: on input - 20/03/10 09:15 PM
/pets ego
Posted By: Canario Re: on input - 21/03/10 10:14 PM
Originally Posted By: Wims
The only way is to recreate the /msg alias, like :

Code:
alias msg {
echo -a /msg has been used
!msg $1-
}



What is the purpose of this !

Is it a new prefix?

I only knowed the . prefix to hide mIRC default messages
Posted By: Wims Re: on input - 21/03/10 10:18 PM
the ! prefix makes mIRC execute the built in command and not the custom one
Posted By: chacha Re: on input - 22/03/10 11:40 AM
Code:
alias me echo -a my stuff

then try to do:
/me something
and
/!me something

now u'll see the difference
© mIRC Discussion Forums