mIRC Home    About    Download    Register    News    Help

Print Thread
A
AntiVisual
AntiVisual
A
Hi all,

I was wondering if there is a command or script you can run that if someone says your nick it will send you a little beep or alert. Thanks.

Joined: Jan 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
easy...

Code:
 
on *:text:*:*:{
if ($me isin $1-) { beep 5 }
}
 

A
AntiVisual
AntiVisual
A
on 1:TEXT:*anti*:#:{beep 1}

I got it to work with this. now if i want it to play another sound from somewhere on my computer can it do that?

Thanks.

Last edited by AntiVisual; 17/05/04 11:21 PM.
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
No, "text" should be left as it is.
You put it in remote (alt+r).

Joined: Jun 2003
Posts: 4,670
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 4,670
The word 'text' needs to be used. That represents an "event" within mIRC - in this case, an ON TEXT event. So it activates "on text" being said. So you can use the exact code that was pasted.

Quote:
Also, where do I put this for the script? in script.ini?


You put this type o' code in Remotes, press ALT+R in mIRC. To ensure it works, put it in a new file, go to File > New.

You may like to know scripting is unnecessary, it would be easier if you used the Highlight options in mIRC to play a sound. ALT+O > IRC > Highlight - Check the box at the top (Enable highlight).

Click on 'Add' and put '$me' (without quotes) into the box at the top. Then click on the Sound button so it says 'Beep' and not 'No Sound'. You can optionally set it to highlight your nickname in colours, or flash a message. That is not needed though. After doing that, press 'OK', and 'OK' again.
Then make sure you have Sounds enabled, type /ebeeps on in mIRC, and turn on your PC Speakers.

Now when someone types yer nickname, it should beep smile - For further help, see /help highlight. For further help with the ON TEXT event, type /help on text.

Regards,

Joined: Mar 2004
Posts: 108
X
Vogon poet
Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
yes, you can with something like this..:

on 1:text:*anti*:#:{
splay path\to\sound.wav
}

if that is what you mean smile

-cheers


Link Copied to Clipboard