mIRC Home    About    Download    Register    News    Help

Print Thread
#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?

mircftw #219426 18/03/10 07:45 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
The only way is to recreate the /msg alias, like :

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



#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #219462 19/03/10 02:23 PM
Joined: Jan 2007
Posts: 1,156
D
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.

DJ_Sol #219470 19/03/10 07:16 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #219512 20/03/10 09:15 PM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
/pets ego

Wims #219563 21/03/10 10:14 PM
Joined: Nov 2003
Posts: 67
C
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
Canario #219564 21/03/10 10:18 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
the ! prefix makes mIRC execute the built in command and not the custom one


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Canario #219583 22/03/10 11:40 AM
Joined: Feb 2009
Posts: 133
C
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

Link Copied to Clipboard