Private Message Popup

By TMFKSOFT on Dec 09, 2010

Screenshots

Ok this is the result of me finding a new function on mIRC
So dont moan if i'm doing something wrong :)

I have found this useful if im using my browser.

You can turn it off easily and you can set how long the popup is
displayed for.

I know that its larger than you need!

When you are using the script for the first time type /p_reset
to set the default variables else it wont work.
I will change the script to work better over time!

Usage:
Turn off and on or set the timer via right-clicking.
Reply to a pm by double clicking the popup message.

Also when you have replied it will show the replied Popup,
double-clicking this will allow you to reply again,
Pm's to you from the same person will be stacked.

Please place all of the code in your remotes tab on a clean
remote :)

p.s. I prefer this to the built-in function for mIRC the built-in fucntion dont allow this amount of expandability :)

AND
Thanks to Allred58 and macs for helping me test it out :)
Also blackvenomm666, Jethro_ & napa182 & IllogicTC for the script improvements

;PM POPUP By TMFKSOFT! Copyright 2010 - 2011
on 1:TEXT:*:?:{
if (%popup) {
set %p_nick $nick
var %qtip $tip(PM, PM from $nick , $chr(91) $+ $time(hh:nn) $+ $chr(93) - $1- ,%ptimer,$mircexe,5,p_reply)
}
else {
p_reset
set %p_nick $nick
var %qtip $tip(PM, PM from $nick , $chr(91) $+ $time(hh:nn) $+ $chr(93) - $1- ,%ptimer,$mircexe,5,p_reply)
}
menu channel,menubar,status {
  PM Popup
  .Turn popups $iif(!%popup,on,off): $+($iif(%popup,un),set) %popup on | echo PM Popup: Popups are $iif(%popup,$v1,off)
  .Set timer: set %ptimer $$?="How many seconds will the popup display for (3-60):"
}
alias p_reset {
  set %popup 1
  set %ptimer 3
  echo PM Popup: PM Popups has been reset
}
alias p_reply {
  set %text $$?="Type a reply for %p_nick $+ :"
  msg %p_nick %text
  var %qtip $tip(reply, Reply to %p_nick , $chr(91) $+ $time(hh:nn) $+ $chr(93) - Replied to %p_nick " $+ %text $+ ",%ptimer,$mircexe,5,p_reply)
  unset %p_nick %text
}

Comments

Sign in to comment.
Jethro   -  Jun 19, 2011

IllogicTC, it doesn't return piggywig anymore under the latest mIRC version.

 Respond  
IllogicTC   -  Jun 19, 2011

I forgot /fnord. But I do remember

//bread $qt($mircexe) 2088124 8 &b | echo $bvar(&b,1-).text

Returns "piggywig". And typing "arnie" while the About mIRC... dialog is open makes the little Arnie the Alligator pop up =D

 Respond  
Jethro   -  Jun 19, 2011

There is another Easter Egg /fnord which returns "Nothing to see here."

 Respond  
blackvenomm666   -  Jun 19, 2011

hahaha the /xyzzy is funneh

 Respond  
IllogicTC   -  Jun 19, 2011

No, /xyzzy is an Easter Egg :P

 Respond  
TMFKSOFT   -  Jun 18, 2011

Jethro Personally i think its one of those things that developers add in aka a EasterEgg

 Respond  
jaytea   -  Jun 16, 2011

maybe he implemented it and then forgot? maybe it's experimental or incomplete? we can only speculate ;>

 Respond  
Jethro   -  Jun 16, 2011

You have to ask yourself this question: why is the /tip command undocumented?

Was Khaled lazy or did he expect us to find out about it eventually?

 Respond  
jaytea   -  Jun 16, 2011

sorry :D

 Respond  
blackvenomm666   -  Jun 16, 2011

.> <.< and then comes jaytea to burst my bubble when i thought i said something smart

 Respond  
jaytea   -  Jun 16, 2011

i know this comment is a bit late haha but you can always make your own /tip alias for it

/tip already exists as an internal command, albeit a thoroughly undocumented one :P

the fact that $tip() returns a value and has several parameters whose values may include spaces explains why it was implemented as an identifier

 Respond  
blackvenomm666   -  Jun 15, 2011

IllogicTC And $tip is pretty awesome. Just for the record. Just got done putting it in Limeplayer myself after discovering $tip() made the tip. I'm surprised that it isn't /tip :\

i know this comment is a bit late haha but you can always make your own /tip alias for it

 Respond  
[i]concur   -  Apr 01, 2011

you are missing a bracket before the menu options - menu channel, menubar, status
:) nice snippet tho!

 Respond  
Sorasyn   -  Apr 01, 2011

Joey12 you could take Slyvar's stance and not rate/like it until its working? Lol

 Respond  
Joey12   -  Apr 01, 2011

Im gonna rate it 0 it doesnt work with Mirc 7.19

 Respond  
TMFKSOFT   -  Mar 06, 2011

Try it now.

 Respond  
Slyvar   -  Mar 05, 2011

the p_reset thing is not working, the only working thing in this snippet is whenever someone types anything in your private s small popup ballon will appear saying the nick of that person and what they said in their private.
If you can fix that It will be a Good Snippet

ps : I use mIRC 7.17

I won't rate or Like until it's fixed, thank you.

 Respond  
IllogicTC   -  Dec 11, 2010

And $tip is pretty awesome. Just for the record. Just got done putting it in Limeplayer myself after discovering $tip() made the tip. I'm surprised that it isn't /tip :\

 Respond  
jaytea   -  Dec 11, 2010

good on you for trying out new and less commonly used features of mIRC! did you know you can pass parameter's to $tip()'s in the usual way? that is to say: //noop $tip(name, title, text, , , , myalias parm1) will create a tip which, when double clicked, calls /myalias with $1 = parm1. you can use that to pass $nick to /p_reply without having to define %p_nick.

 Respond  
Sorasyn   -  Dec 11, 2010

Very impressive :) Way to really stand out of the pm snippet crowd. 10 +like

 Respond  
IllogicTC   -  Dec 10, 2010

on *:load: p_reset

It will make it set variables on loading. However, since this is a copy-paste deal here, it wouldn't work without pasting, unloading, then re-loading the file it is contained in.

So what you could do is

on 1:TEXT:*:?:{
if (%popup) {
set %p_nick $nick
var %qtip $tip(PM, PM from $nick , $chr(91) $+ $time(hh:nn) $+ $chr(93) - $1- ,%ptimer,$mircexe,5,p_reply)
}
else {
p_reset
set %p_nick $nick
var %qtip $tip(PM, PM from $nick , $chr(91) $+ $time(hh:nn) $+ $chr(93) - $1- ,%ptimer,$mircexe,5,p_reply)
}

With this, it will check if the variable exists, if it does, good'n'gravy. If the variables AREN'T set, set the variables, then good'n'gravy.

 Respond  
Phil_FW   -  Dec 10, 2010

this looks very handy, more handy than a lot of other PM popups

 Respond  
napa182   -  Dec 09, 2010

you can turn

menu * {
  PM Popup
  .Turn popups on: set %popup 1 | //echo PM Popup: Popups are on
  .Turn popups off: set %popup 0 | //echo PM Popup: Popups are off
  .Set timer: set %ptimer $$?="How many seconds will the popup display for (3-60):"
}

into

menu channel,menubar,status {
  PM Popup
  .Turn popups $iif(!%popup,on,off): $+($iif(%popup,un),set) %popup on | echo PM Popup: Popups are $iif(%popup,$v1,off)
  .Set timer: set %ptimer $$?="How many seconds will the popup display for (3-60):"
}

then turn

on 1:TEXT:*:?:{
  if (%popup == 1) {

into this

on 1:TEXT:*:?:{
  if (%popup) {

also change the set %popup in the alias to set %popup on instead of set %popup 1

 Respond  
TMFKSOFT   -  Dec 09, 2010

ty people :)

 Respond  
blackvenomm666   -  Dec 09, 2010

that to jeth but -/ haha

 Respond  
Jethro   -  Dec 09, 2010

You don't need another /unset command:

/unset %p_nick %text
 Respond  
blackvenomm666   -  Dec 09, 2010

looks good but all the /'s arent needed added jethro's edit to mine :D


on 1:TEXT:*:?:{
  if (%popup == 1) {
    set %p_nick $nick
    var %qtip $tip(PM, PM from $nick , $chr(91) $+ $time(hh:nn) $+ $chr(93) - $1- ,%ptimer,$mircexe,5,p_reply)
  }
}
menu * {
  PM Popup
  .Turn popups on: set %popup 1 | //echo PM Popup: Popups are on
  .Turn popups off: set %popup 0 | //echo PM Popup: Popups are off
  .Set timer: set %ptimer $$?="How many seconds will the popup display for (3-60):"
}
alias p_reset {
  set %popup 1
  set %ptimer 3
  .echo PM Popup: PM Popups has been reset
}
alias p_reply {
  set %text $$?="Type a reply for %p_nick $+ :"
  .msg %p_nick %text
  .var %qtip $tip(PM, Reply to %p_nick , $chr(91) $+ $time(hh:nn) $+ $chr(93) - Replied to %p_nick - " $+ %text $+ ",%ptimer,,,p_reply)
  unset %p_nick %text
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.