mIRC Home    About    Download    Register    News    Help

Print Thread
M
Moe_S
Moe_S
M
Hello all. I don't know how to program mirc unfortunately, so I don't know if this is possible.

I'm looking to make mirc more like IM apps, so whenever certain nicks (my "buddies") enter the channel (or channels), I will know without opening the mirc window. For example, by emitting sound (different sounds for different nicks?), flashing the taskbar icon, or anything else mirc can do.

The main reason is because I have several friends that only chat in IRC, so I need to keep scanning the channel with my eyes (and meanwhile doing nothing else) to see if they entered yet.

I am not asking for someone to program this for me (I suspect it is more than a few lines), but just to comment if the general idea is even plausible, so I can further research it. Even a simplified version (monitor one nick in one channel) will be a start.

Thanks a bunch.

Joined: Jun 2003
Posts: 4,670
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 4,670
on buddy:join:#:{ beep 5 | flash }

Then use /auser buddy nickname!user@host where nick!user@host is an appropriate mask, depending on if their hostname or identd regularly changes, or if they regularly change their nickname.

Different sounds for different nicknames is not much more complicated, just use if statements, i.e.

on *:join:#:{
if ($nick == buddy) { splay buddy.wav }
if ($nick == friend) { splay friend.wav }
}


See the following help files:
/help /splay
/help if then else
/help on join


Regards,

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
1) Go into your address book and add your friends there in your Notify list. (Alt-B > Notify)

2) Press Alt-R, go to File > New. Add this:

Code:
on *:notify: {
  .splay yoursound.wav
}


Just replace "yoursound.wav" with whatever sound you want played. This will play the sound when they join IRC. If you want a sound when they leave, do the same thing, but replace notify with unotify.

If you want it just for when they join your channel, you can do:

Code:
on *:join:#yourchan: {
  if ($level($nick) == friend) {
    .splay yoursound.wav
  }
}


For this last one to work, you need to add your friends to your user list (Alt-R > Users) in this format:

friend:friend's_nick

Example:
friend:riamus

Note that you can also do this by address rather than nick if you want. Just replace any instance of $nick with $address($nick,6) . If you're using the last code, you'll need to put the address into the Alt-R>Users instead of the nick:

Example:
friend:nick!*user@host.com

If you wanted a different kind of $address, type /help $address and look at the possible numbers to use instead of "6". Just make sure you put the right $address format into the Users tab or it won't do anything.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Beat me to it, Mentality. smile

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
in mIRC 6.16 the notify has a place to set a sound file for when a person joins or leaves IRC. each person can have their own sound.
under Options > IRC hilite you can have mIRC flash/ play a sound on text based on nicks or words or nick and words.

M
Moe_S
Moe_S
M
Wow, that's much simpler than I thought it would be. A notify list right under my nose! I guess I should RTFM. Thank you all!

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Maybe I should look into using 6.16? laugh

(I'm still on 6.14 due to script reasons)


Link Copied to Clipboard