Author Topic: Sound on my nick  (Read 7554 times)

Rodrigon

  • Guest
Sound on my nick
« on: February 02, 2005, 09:29:09 AM »
hi guys, I minimize ichechat sometimes...

does anyone know a way to set icechat to make noise if my nick is on a message?

I make this, but it's

wrong:

Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
 If ("$me" isin Message) then
     SendCommand

"/play nick.wav"
     SendCommand "/echo Nickname ha escrito tu nick en Channel"
 End If
End Sub

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Sound on my nick
« Reply #1 on: February 02, 2005, 02:23:17 PM »
Looks to me like you are trying to use mIRC Scripting, which

of course does not work in IceChat. IceChat uses VB Scripting, there is a good section of it in the help

files.
Code: [Select]

Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
if

Instr(Message,GetIdentifier("$me",ServerNumber)) then
  SendCommand "/play nick.wav"


  SendCommand "/echo Nickname ha escrito tu nick en Channel"
End If
End

Sub


There is another way as well. Using the "Text Highlighter" in Options, add $me, and then

pick a sound. Works just as well. But you cant display a message or such, that you would do with the above script.
The IceChat God

ADB

  • Newbie
  • *
  • Posts: 47
Sound on my nick
« Reply #2 on: February 02, 2005, 09:11:51 PM »
I don't mean to nitpick, but it should use the function's

variables, like this:

Code: [Select]
Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
if

Instr(Message,GetIdentifier("$me",ServerNumber)) then
  SendCommand "/play nick.wav"


  SendCommand "/echo " & Nickname & " ha escrito tu nick en " & Channel
End If


End Sub

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Sound on my nick
« Reply #3 on: February 02, 2005, 09:20:02 PM »
Yes, of course, I missed that one :)

Spending too much

time writing the new Script engine, these "little" things get past me now, too easily.  :)
The IceChat God

nribecca

  • Newbie
  • *
  • Posts: 2
Re: Sound on my nick
« Reply #4 on: October 10, 2006, 08:56:17 AM »
Has anyone else noticed the Highlight selection under Options Dissappears at times?
I cant find it, anywhere!
HELP

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Sound on my nick
« Reply #5 on: October 10, 2006, 10:35:43 AM »
This is because, in IceChat 7, it is now under the "Color Options" window.
The IceChat God

nribecca

  • Newbie
  • *
  • Posts: 2
Re: Sound on my nick
« Reply #6 on: October 10, 2006, 11:49:47 AM »
Thank you, it's been driving me crazy!