mIRC Home    About    Download    Register    News    Help

Print Thread
on input #219424 18/03/10 07:23 PM
Joined: Mar 2010
Posts: 1
M
mircftw Offline OP
Mostly harmless
OP Offline
Mostly harmless
M
Joined: Mar 2010
Posts: 1
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?

Re: on input [Re: mircftw] #219426 18/03/10 07:45 PM
Joined: Jul 2006
Posts: 3,829
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,829
The only way is to recreate the /msg alias, like :

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



Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: on input [Re: Wims] #219462 19/03/10 02:23 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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.

Re: on input [Re: DJ_Sol] #219470 19/03/10 07:16 PM
Joined: Jul 2006
Posts: 3,829
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,829
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.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: on input [Re: Wims] #219512 20/03/10 09:15 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
/pets ego

Re: on input [Re: Wims] #219563 21/03/10 10:14 PM
Joined: Nov 2003
Posts: 67
C
Canario Offline
Babel fish
Offline
Babel fish
C
Joined: Nov 2003
Posts: 67
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


irc.universochat.net
#escripting
Re: on input [Re: Canario] #219564 21/03/10 10:18 PM
Joined: Jul 2006
Posts: 3,829
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,829
the ! prefix makes mIRC execute the built in command and not the custom one


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: on input [Re: Canario] #219583 22/03/10 11:40 AM
Joined: Feb 2009
Posts: 133
C
chacha Offline
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
Code:
alias me echo -a my stuff

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

now u'll see the difference


WorldDMT