mIRC Home    About    Download    Register    News    Help

Print Thread
#159700 19/09/06 03:49 PM
Joined: Sep 2006
Posts: 3
P
ppuq Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Sep 2006
Posts: 3
hi, guys. i was looking for a way to make a balloon pop up in the system tray whenever a specific person on my notify list goes online. so, any ideas?

thanks in advance.

#159701 19/09/06 03:59 PM
Joined: Sep 2003
Posts: 261
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
You're welcome.

#159702 19/09/06 04:15 PM
Joined: Sep 2006
Posts: 3
P
ppuq Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Sep 2006
Posts: 3
we have a comedian here. dude, if you're not willing to help, just don't respond to the thread.

#159703 19/09/06 04:17 PM
Joined: Feb 2006
Posts: 164
V
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
Trey here

#159704 19/09/06 04:19 PM
Joined: Sep 2003
Posts: 261
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
They said thanks, and I just said you're welcome frown. I thought perhaps that would be a good thing to say to show them that at least someone is listening. You want me to help fine. No there is no way of making it work just like windows other programs use it without outside help from a possible DLL. Though to my knowledge one does not exist, you're best bet is to just have mIRC maximized and use some sort of window drawing method to emulate that effect.

Is that better?

#159705 19/09/06 04:29 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
There's a dll called "systray.dll" by Narusag something or other but I can't find a download location. You might wish to have a look for that.

#159706 19/09/06 05:49 PM
Joined: Sep 2006
Posts: 3
P
ppuq Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Sep 2006
Posts: 3
i downloaded that systray.dll and it works. thanks everyone that helped, including Scorpwanna. wink

#159707 19/09/06 05:55 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Can you remember where you found it?

#159708 19/09/06 06:32 PM
Joined: Sep 2003
Posts: 261
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Well, I'm to late, frown Cuz you can use agent to do that, i just came up with something but, glad you got it working.
I'll post it anyway incase this helps someone in the future. The below script requires that you have agent fully working on your PC.

Code:
alias balloonnotice {
  var %message = $1-
  var %maxwidth = $window(-1).w
  var %maxheight = $window(-1).h
  %maxwidth = $calc(%maxwidth -100)
  ;%maxheight = $calc(%maxheight -24)

  .gload agent
  .gsize agent 1 1
  .gopts -b agent on nopace
  .gmove agent 0 0 0
  .gmove agent %maxwidth %maxheight 0
  .gtalk -k agent %message
}
on 1:agent:{ if ($agent(agent)) { gunload agent }
 


Usage: /balloonnotice text

Last edited by Scorpwanna; 19/09/06 06:58 PM.
#159709 19/09/06 07:20 PM
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
systray.dll can be found here.


I refuse to engage in a battle of wits with an unarmed person. wink
#159710 20/09/06 01:37 AM
Joined: Sep 2003
Posts: 261
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Got bored so I did this, it's something that may come useful to someone else out there who want's some notifications. This is an example, uses a picture window to mimic that of the notification balloon.

Code:
;On Join/Part/Quit Balloon Notifier
on 1:JOIN:#:balloonnotice $nick has joined $chan
on 1:PART:#:balloonnotice $nick has left $chan
on 1:QUIT:balloonnotice $nick has Logged Off
alias balloonnotice {
  var %message = $1-
  var %balloonx $calc($window(-1).w -250)
  var %balloony $calc($window(-1).h -83)
  window -dpozk0 +dL @balloonnotice %balloonx %balloony 202 51
  drawrect -rdf @balloonnotice $rgb(254,255,224) 2 1 1 200 49
  drawpic -cog1 @balloonnotice 12 7 221 $+(", C:\WINDOWS\system32\shell32.dll, ")
  drawtext -ro @balloonnotice $rgb(0,0,0) Tahoma 11 36 8 mIRC Notification
  drawtext -r @balloonnotice $rgb(0,0,0) Tahoma 11 12 28 %message
  .timerclosebn 1 5 window -c @balloonnotice
}


Scriptbusters

#159711 20/09/06 03:53 AM
Joined: Sep 2003
Posts: 261
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Slightly updated this due to the fact it was taking over as active window. This fixes it.

Code:
;On Join/Part/Quit Balloon Notifier
on 1:JOIN:#:balloonnotice $nick has joined $chan
on 1:PART:#:balloonnotice $nick has left $chan
on 1:QUIT:balloonnotice $nick has Logged Off
alias balloonnotice {
  var %message = $1-
  var %balloonx $calc($window(-1).w -250)
  var %balloony $calc($window(-1).h -83)
  window -dfhnopk0 +dL @balloonnotice %balloonx %balloony 202 51
  drawrect -rdf @balloonnotice $rgb(254,255,224) 2 1 1 200 49
  drawpic -cog1 @balloonnotice 12 7 221 $+(", C:\WINDOWS\system32\shell32.dll, ")
  drawtext -ro @balloonnotice $rgb(0,0,0) Tahoma 11 36 8 mIRC Notification
  drawtext -r @balloonnotice $rgb(0,0,0) Tahoma 11 12 28 %message
  window -o @balloonnotice
  .timerclosebn 1 5 window -c @balloonnotice
}

#159712 20/09/06 06:48 AM
Joined: Feb 2003
Posts: 143
N
Vogon poet
Offline
Vogon poet
N
Joined: Feb 2003
Posts: 143
ok, so i was working with this part of the script trying myself to get it to work for me and dont know if i came around a bug, or it is something i have missed. Scorp here made a simple balloon script and I loaded it up but for some reason the border doesnt hide, so the edges are not curved, does anyone else have this problem.

Code:
 
alias balloonnotice {
  var %message = $1-
  var %balloonx $calc($window(-1).w -250)
  var %balloony $calc($window(-1).h -83)
  window -dfhnopk0 +dL @balloonnotice %balloonx %balloony 202 51
  drawrect -rdf @balloonnotice $rgb(254,255,224) 2 1 1 200 49
  drawpic -cog1 @balloonnotice 12 7 221 $+(", C:\WINDOWS\system32\shell32.dll, ")
  drawtext -ro @balloonnotice $rgb(0,0,0) Tahoma 11 36 8 mIRC Notification
  drawtext -r @balloonnotice $rgb(0,0,0) Tahoma 11 12 28 %message
  window -o @balloonnotice
  .timerclosebn 1 5 window -c @balloonnotice
}
 


We don't just write the scripts, we put them to the test! (ScriptBusters)
#159713 20/09/06 11:09 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Thanks.

#159714 29/09/06 02:55 PM
Joined: Sep 2006
Posts: 71
O
Babel fish
Offline
Babel fish
O
Joined: Sep 2006
Posts: 71
I like this post a lot...umm any way I could get thos this to work with more notices? like whois, ban, kicked...etc also with the pop up soound?


Link Copied to Clipboard