mIRC Homepage
Posted By: P0t Hear own Hightlight sounds? - 16/06/04 02:49 AM
Hi
Normally i only hear the sound which i set when other people highlightet me/the word
like here
on *:text:*.nice*:#: { splay nice.wav }
I only hear the sound when other people write "nice"
But i want to hear it too when i write it.
Anyone know how to do this?
Thx
Posted By: Mentality Re: Hear own Hightlight sounds? - 16/06/04 04:50 AM
In a new remote file you may use something like:

on *:input:#:{ if (*nice* iswm $1-) { splay nice.wav } }

For further help, see /help on input.

Regards,
Posted By: P0t Re: Hear own Hightlight sounds? - 16/06/04 05:37 AM
Hi
Thx for your quick answer.I think i'm too stupid for this frown
I have to do that with some more sound files
mp3 and wav's (36 files)
And i want to write all the studff in 1 remote .mrc file
Can you give me an example?
I testet it so

on *:input:#:{ if (*.ncn* iswm $1-) { splay ncn.wav } }

}

{

on *:input:#:{ if (*.great* iswm $1-) { splay great.wav } }

}


But it doesnt work.Only the first sound works ".ncn"

What is wrong?


Posted By: Mentality Re: Hear own Hightlight sounds? - 16/06/04 05:46 AM
Probably an easier way, however, you could use elseif and something like the following:

Code:
on *:input:#:{ if (*.ncn* iswm $1-) { splay ncn.wav }
  elseif (*.great* iswm $1-) { splay great.wav }
  elseif (*.whatever* iswm $1-) { splay whatever.wav }
}


Regards,
Posted By: P0t Re: Hear own Hightlight sounds? - 16/06/04 06:07 AM
ah that works. thx!!
But!Got one more problem frown
The sound also playes when i write ".niceNXNDSUJW"
Thats [censored],because i have files like ".nice1" and ".nice2"
And so he only playes the ".nice"
Can i write it so that the sound only playes when i only write ".nice"
sry,my englisch is not so good.but i think you understand what i mean ::P
thx for your great help!
Posted By: Online Re: Hear own Hightlight sounds? - 16/06/04 06:39 AM
This script does exact text comparison:

On *:input:#:{
  • if (.* !iswm $1) { return }
    if ($1- == .ncn) { splay ncn.wav }
    if ($1- == .great) { splay great.wav }
    if ($1- == .nice) { splay nice.wav }
    if ($1- == .nice1) { splay nice1.wav }
    if ($1- == .nice2) { splay nice2.wav }
}
Posted By: P0t Re: Hear own Hightlight sounds? - 16/06/04 12:47 PM
hmpf cry frown
thx but with this script i only hear the sounds when i write them.I want also hear them when others write them
any idea?
Posted By: Online Re: Hear own Hightlight sounds? - 16/06/04 03:40 PM
You'll need a different event for that:

On *:text:.*:#:{
  • if ($1- == .ncn) { splay ncn.wav }
    if ($1- == .great) { splay great.wav }
    if ($1- == .nice) { splay nice.wav }
    if ($1- == .nice1) { splay nice1.wav }
    if ($1- == .nice2) { splay nice2.wav }
}
Posted By: P0t Re: Hear own Hightlight sounds? - 16/06/04 06:44 PM
yea,now all works
THX for your help!
Posted By: P0t Re: Hear own Hightlight sounds? - 17/06/04 12:07 AM
aaah
me againt :P
Got one more question!
I createt a popup menu like this

menu Channel,query {
.fU-SouNds
.Enable:/load -rs fUsounds.mrc
.Disable:/unload -rs fUsounds.mrc
..SouNds
..nice:/msg # .nice
}

But when i use the soundtriggers on with the popup i dont hear the sound myself!Anyone know how?
Posted By: war59312 Re: Hear own Hightlight sounds? - 23/10/04 08:57 PM
My problem is turning the darn the off. I have higlighting sounds off but still it does it. Annorying as crap.

Any help would be great.

cya,
Will
© mIRC Discussion Forums