mIRC Home    About    Download    Register    News    Help

Print Thread
#117603 17/04/05 05:46 PM
Joined: Mar 2005
Posts: 3
O
Self-satisified door
OP Offline
Self-satisified door
O
Joined: Mar 2005
Posts: 3
1. Is there any way to retrieve the address of a user? I know about $address but it uses the internal address list. What if I want to know the address of someone not in it?

2. I have a problem with timestamps and colors. If you put the color code character next to a digit like HH, mm or ss it will take those numbers with it as an argument, is there anyway to work around it? The only sollution I have found so far is adding spaces which also makes it ugly and take up more space.

3. I made it so that whenever someone highlights me it will also change the tray icon in case I was afk or something like that and didn't hear the sound. I use on ACTIVE to change it back to normal but it only occurs when changing window focus, not when restoring mIRC after being minimized to tray. It's not that much of a problem but is there a way to make it work or do I have to live with it?

4. on JOIN seems to only check when other people join a channel, not yourself. There are some initialization things I'd like to do when I join a channel such as changing window pos and size. How?

#117604 17/04/05 05:51 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
1) Use /whois, /who, /userhost or /userip

2) Use double digit colour codes (Eg: ^k03 instead of ^k3).

3) I don't understand what you're asking.

4)

On join also fires when you join a channel.
Two ways:

Code:
on me:*:join:#:{ dostuff }


Code:
on *:join:#:{
  if ($nick == $me) { dostuff }
}


New username: hixxy
#117605 17/04/05 06:07 PM
Joined: Mar 2005
Posts: 3
O
Self-satisified door
OP Offline
Self-satisified door
O
Joined: Mar 2005
Posts: 3
Thanks! And as for 3, to make it short: I need something that reacts when mIRC is being minmized or maximized.

#117606 17/04/05 06:13 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *:appactive:{
  if ($istok(minimized tray, $appstate, 32)) { 
    ; mIRC was minimized 
  }
  else {
    ; mIRC was restored/maximized.
  }
}


New username: hixxy

Link Copied to Clipboard