EDIT:
Added a slightly updated version to match my theme. Hope you like it. Above screenshot no longer applies.
Very simple query manager. Needs work. Posting from cellphone as per usual so sorry if there are errors. Needs DCX.dll to run.
;Put the following in aliases;
blk return xdialog -g $dname +b $rgb(0,0,0)
xdc return xdialog -c $dname
;end edit;
#psqm on
alias psqm {
if ($dialog(psqm)) { dialog -x psqm }
dialog -m psqm psqm
}
dialog psqm {
title "ProSec IRC Query Manager"
size -1 -1 170 50
option dbu
}
on *:dialog:psqm:init:*: {
dcx Mark $dname psqm_cb
$blk
$xdc 1 text 4 4 332 20 transparent
$xdc 2 text 4 22 332 20 transparent
$xdc 4 button 4 70 82 26
xdid -t $dname 4 Accept
$xdc 5 button 130 70 82 26
xdid -t $dname 5 Deny
$xdc 6 button 254 70 82 26
xdid -t $dname 6 Whois
}
alias psqm_cb {
if ($2 == sclick) && ($3 == 4) {
.query %qnick 3{14- 3Q14uery request accepted3. 14-3}
dialog -x psqm
unset %qnick
}
elseif ($2 == sclick) && ($3 == 5) {
.query %qnick 3{14- 3Q14uery request denied3. 3I14 am currently too busy to accept your PM3. 3P14lease try again later3. 14-3}
window -c %qnick
dialog -x psqm
.ignore -wu120 %qnick
unset %qnick
}
elseif ($2 == sclick) && ($3 == 6) {
whois %qnick
}
}
on *:open:?:*: {
set %qnick $nick
.query %qnick 3{14- 3Y14our query has been sent3. 3P14lease be patient while i decide whether or not to respond3... 14-3}
echo -a Incoming Message From:3 $nick $+ ( $+ $address $+ )
psqm
xdid -t psqm 1 3{14- 3S14ender3:3 $nick 14-3}
xdid -t psqm 2 3{14- 3T14ime3:3 $time(h:nn TT) 14-3}
}
#psqm end
menu channel {
.Query Manager
..On: .enable #psqm | echo -a Query Manager on
..Off: .disable #psqm | echo -a Query Manager off
}
I'm not trying to make a big deal of it, just was curious lol. It does have better controls (AND LOTS MORE), that's for sure. I don't know about the simplicity of it, but I do know about the availability of options. It's something more for advanced scripters, though. There's a rigid structure you have to follow (including using $chr(9) [tab] and having the + there for flags, even with no flags selected for some controls) that can make it a pain sometimes :(
I used to for my LimePlayer MP3 Player (in the scripts section if you want to look into it). Makes heavy use of DCX because of its ability to provide trackbars, etc. And DirectShow :D :D :D
@ProSec, I may actually abandon the one I've been using (non DCX for this one) (of course I'd have to take the color out :P )
@Frenetic, get in the game sir. :P I remember DarkEngine.DLL for dialogs a while back.
@Dean, You could have easily left out "ProSec you always give the excuse that if there are some errors, you're on cellphone" That has nothing to do with the script, It's your way to antagonize.
@Jethro, you know what what happens when you comment about something Dean says. Why do you do it :P
Hmmm, that's a good question. The majority of the snippets i post are dialogs, and i use DCX almost exclusively for dialogs. Also, as i have stated before, dialogs just look cleaner with DCX. So beyond that, i'm not sure, Frenetic. I guess i never really thought about it. Your are right, though. I need to add some variety...
Ok Dean, let me put it to you this way: 1) Post all you want. I will have the dignity to neither read nor respond to your comments. 2) I don't HAVE to appologize for my errors, i do it out of courtesy. 3) Get off Jethro, he's twice the person you will ever be. And thank you, Frenetic. I do what i can.
Dean wrote:> ProSec you always give the excuse that if there are some errors, you're on cellphoneThe excuse is valid because you have no way of knowing if he's on a PC, laptop or smartphone. Some people don't really own a computer, and they utilize other means to connect to the internet. Unless you have a solid proof, then you're welcome to accuse ProSec of using cellphone as an excuse to cover up his errors in his work. Until then, I'll rest my case to say anything further.