mIRC Home    About    Download    Register    News    Help

Print Thread
#109821 01/02/05 06:15 PM
Joined: Sep 2004
Posts: 237
J
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
This is what i have so far but i cant seem to get the raw to work...
Code:
 menu channel {
  Snoop:/dialog -m Snoop Snoop
}


Dialog Snoop {
  Title "Snoop"
  size -1 -1 200 150
  option dbu
  box "Are You Paranoid ?",1,5 5 190 140
  text "Nick:",2,10 35 25 10
  edit "",3,10 42 35 10
  button "Go",4,47 42 11 9 
  text "User ID:",5,60 35 25 10
  edit "",6,60 42 35 10
  button "Go",7,97 42 11 9
  text "Full Name:",8,110 35 30 10
  edit "",9,110 42 35 10
  button "Go",10,147 42 11 9
  text "Mask: Host Only - ABC.ipt.aol.com",11,10 55 135 10
  edit "",12,10 62 135 10
  button "Go",13,147 62 11 9
  text "Channel:",14, 10 15 25 10
  combo 15,10 22 80 50,size drop 
}
on *:DIALOG:Snoop:init:0:{
  var %Cz = $chan(0) 
  while (%Cz > 0) {
    var %C# = $chan(%Cz)
    did -ac Snoop 15 %C#
    dec -z %Cz 1
  }
}
on *:DIALOG:Snoop:Sclick:4:{
  if ($did(3) == $null) { echo -at Snoop: No Nick To Scan For... Look in the NickList you Lazy Bastard! }
  else { .raw -q WHO $did(15).seltext }
}

raw 352:*:{
  if ($6 == $did(Snoop,3).seltext) { echo -at Match }
}
 

What i need pretty much is the raw line to compare to the ID 3 text and for now just echo to active that theres a match. The raw -q who is also showing instead of running quiet, but i do have a clone scanner that also uses the same raw -q who line.... could that be the problem with that?

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
RAW -q hides the input data to the server, not the output reply. You have to script a solution if you want to hide the raw output (You can do this by setting a variable when you /raw, and check its existence when the raw comes around to halt processing, then unset it)

I bothered to code it for you
I changed the last 2 events

Code:
on *:DIALOG:Snoop:Sclick:4:{
  if ($did(3) == $null) {
    echo -at Snoop: No Nick To Scan For... Look in the NickList you Lazy Bastard! 
  } 
  else {
    set %who. [ $+ [ $did(3) ] ] $true
    .raw -q WHO $did(3)
  }
}
raw 352:*:{ 
  if (%who. [ $+ [ $6 ] ]) { 
    echo -at Match 
    unset %who. [ $+ [ $6 ] ] 
    halt
  }
} 


* Edit: I forgot to mention, your problem was the fact that you used $did().seltext in the RAW event when .seltext means selected text, not text that exists in the dialog (selected means highlighted, for an editbox.. IM ASSUMING, someone correct me please, i dont use dialogs)

Last edited by argv0; 01/02/05 06:29 PM.
Joined: Sep 2004
Posts: 237
J
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
Works great ... and youre 100% right about the seltext ... i think it got left behind in one of my attempts to get it working right.


Link Copied to Clipboard