ProSec IRC Query Manager

By Protheus on Dec 11, 2011

Screenshots

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
}

Comments

Sign in to comment.
fahadmehar   -  Oct 23, 2018

NOT WORKING

DCX Unknown command
1 Unknown command
2 Unknown command
4 Unknown command
XDID Unknown command
5 Unknown command
XDID Unknown command
6 Unknown command
XDID Unknown command
XDID Unknown command
XDID Unknown command

 Respond  
Protheus   -  Dec 12, 2011

UPDATE Added a screenie.

 Respond  
IllogicTC   -  Dec 11, 2011

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

 Respond  
Protheus   -  Dec 11, 2011

Please see my above statement. I JUST LIKE DCX. lol its just cleaner, more refined, better controls, simpler. Idk i just like it, bro. I dont see the big deal.

 Respond  
IllogicTC   -  Dec 11, 2011

Except the "transparent" properties on two text controls, I don't really see what the benefit of using DCX on this snippet is. Perhaps you could detail the use for me?

 Respond  
Protheus   -  Dec 11, 2011

After you deny the p2p its supposed to close the pm, did it not for you? If not, i have no clue how to stop the pm from opening. I'll do the message thing though. Good idea, bro.

 Respond  
xdesoto   -  Dec 11, 2011

Okay, update: after trying the script, I have some suggestions.
1) Don't let the p2p open. Like my query box still opened even if I denied the p2p.
2) In the dialog. Have it say "$Nick p2p'd you with: Message here"
That's about it for now. :)

 Respond  
xdesoto   -  Dec 11, 2011

@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

 Respond  
Frenetic   -  Dec 11, 2011

Na, it's fine. Just not used to seeing dialogs with DLLs, lol.

 Respond  
Protheus   -  Dec 11, 2011

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

 Respond  
Frenetic   -  Dec 11, 2011

No-One needs to defend Jethro, He's not a 10 year old immature brat lol. Unlike some but anyway, ProSec, how come you use DLLs on most if not all of your snippets?

 Respond  
Protheus   -  Dec 11, 2011

EDIT: Added the required aliases and added the option to turn it on and off. Just right-click in channel and click on or off. Simple as pancakes.

 Respond  
Protheus   -  Dec 11, 2011

I swear Dean, you are going to single-handedly make at least 2 people stop posting snippets because of your bullshit. You act so damned childish is sickening. Obviously you are a mature young man, so act like it and stop trying to play Internet Badass, you aren't impressing anyone.

 Respond  
_Dean_   -  Dec 11, 2011

thats why there is always posts like these here
idiots like Jethro and Frenetic always posting lame things... im wonder if tocflane will come to defend his man too

 Respond  
Protheus   -  Dec 11, 2011

One other thing. Mind you, i do not have to explain myself. I like colors in my dialogs, and there is color in this particular dialog. Why did i not post this snippet with it's original colors? Because a cellphone does'nt have a CRTL button, therefore i cannot post control codes.

 Respond  
Protheus   -  Dec 11, 2011

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.

 Respond  
Frenetic   -  Dec 11, 2011

I do wonder why you're not banned yet, seriously grow up :|

Also, looks nice ProSec

 Respond  
_Dean_   -  Dec 11, 2011

i'll comment whenever i want, if you want to delete my comments, i will post it again and again
that idiot Jethro came here with off-topics thing, and no one said nothing about him

 Respond  
Protheus   -  Dec 11, 2011

Look, i don't want one of these damned flame wars on my snippet, so Dean, remember the Golden Rule and if you can't please don't comment.

 Respond  
Jethro   -  Dec 11, 2011

You were off-topic of accusing ProSec of using cellphone as an excuse. I was commenting on your accusative commentary in the same manner. The finger is on you, not me.

 Respond  
Protheus   -  Dec 11, 2011

@Jethro, thanks, Dean, sorry. Gimme a minute and i will edit.

 Respond  
_Dean_   -  Dec 11, 2011

you need to rest your fingers from hawkee, and stop posting here..., unless you post something about the code itself

 Respond  
Jethro   -  Dec 11, 2011

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.

 Respond  
_Dean_   -  Dec 11, 2011

ProSec you always give the excuse that if there are some errors, you're on cellphone

1 - there are no ways, to turn it off, if the person wants to turn it off someday, the only way is to unload it?
2 - $blk, $xdc and xdid will return errors, i didnt see you saying that ppl need the dcx to run it

 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.