mIRC Home    About    Download    Register    News    Help

Print Thread
Pop up on notify? #106567 01/01/05 12:55 AM
Joined: Dec 2004
Posts: 18
S
sylain Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Dec 2004
Posts: 18
Ok, here's my situation:
I want to make a window that pops up in front of any active applications (ones that use full screen) when someone signs on
How might I do that?

Re: Pop up on notify? #106568 01/01/05 01:08 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean something like this..
Code:
on 1:CONNECT: {
  .timer 1 10 .enable #notify1
}

#notify1 on

menu @notify {
  sclick: { 
    query %notify.nick
    .window -c @notify
  }
}

alias notify.online {
  window -dpo +ef @notify 777 490 160 140
  drawfill @notify 1 3 0 1
  .drawtext @notify 8 "Letter Gothic" 15 2 20 Notify List:
  .drawtext @notify 8 "Letter Gothic" 15 2 60 $chr(160) $chr(160) %notify.nick
  .drawtext @notify 8 "Letter Gothic" 15 2 100 has signed in!
  .timer 1 10 .window -c @notify
}

#notify1 end

on 1:DISCONNECT: {
  .disable #notify1
}

on ^1:Notify: {
  echo -st  $nick (  $+ $address $+ ) is on IRC.
  set -u10 %notify.nick $nick
  notify.online
  haltdef
}

on ^1:Unotify: {
  echo -st  $nick (  $+ $address $+ ) has left IRC.
  set -u10 %notify.nick $nick
  notify.offline
  haltdef
}

alias notify.offline {
  window -dpo +ef @unotify 777 490 160 140
  drawfill @unotify 1 3 0 1
  .drawtext @unotify 8 "Letter Gothic" 15 2 20 Notify List:
  .drawtext @unotify 8 "Letter Gothic" 15 2 60 $chr(160) $chr(160) %notify.nick
  .drawtext @unotify 8 "Letter Gothic" 15 2 100 has signed out!
  .timer 1 5 window -c @unotify
}


The reason I added the timer is because it I couldn't get it to display multiple windows to show who signs in, it will only show one user, so if on connect you have 7 users on notify it would only show 1 notify window, not 7.

Re: Pop up on notify? #106569 01/01/05 01:46 AM
Joined: Dec 2004
Posts: 18
S
sylain Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Dec 2004
Posts: 18
er... I want to make it so it pops up for JUST one user... I'll try that though

Re: Pop up on notify? #106570 01/01/05 08:44 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
I want to make it so it pops up for JUST one user
Change both instances of Nickname to the user you want it for.
Code:
on *:notify:if !$appactive && !away && $nick == [color:red]Nickname[/color] { n2tray $v1 }
on *:unotify:if !$appactive && !$away && $nick == [color:red]Nickname[/color] { n2tray $v1 Offline }
alias -l n2tray {
  window -hpdofk +defL @N2tray $calc($window(-1).w - 305) $calc($window(-1).h - 144) 300 75
  drawfill -r @N2tray $rgb(255,255,239) 0 0 0
  drawpic -os @N2tray 12 20 48 48 0 $+(",$mircexe,")
  drawtext -p @N2tray $color(notify) 70 10 $+(,$1,) $iif($2,has quit,is on) IRC.
  if $notify($1).addr { drawtext -p @N2tray $color(notify) 80 30 ( $+ $v1 $+ ) }
  drawtext @N2tray $color(notify) 80 50 (On $iif($network,$v1,$server) $+ )
  window -r @N2tray
  .timern2tray 1 10 close -@ @N2tray
}
menu @N2tray {
  sclick:showmirc -r | close -@ @N2tray
}

Re: Pop up on notify? #106571 01/01/05 09:22 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Nice dude. cool