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
}
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
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.
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.
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.
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
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
}