mIRC Home    About    Download    Register    News    Help

Print Thread
#55978 18/10/03 11:10 PM
Joined: Feb 2003
Posts: 12
K
kokoko Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Feb 2003
Posts: 12
is there a way to pass the contens of the debug replies to a script ... i m trying to make a script that acts on the privmsg commands before mIRC interprets them ... (befor mirc says its a msg, notice, action etc ..)

i was wondering if there was an option to the debug command like :

/debug -t @debug COMMAND

alias COMMAND {
if (privmsg isin $1-) { etc ... }
}

#55979 18/10/03 11:20 PM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
/debug [-cinpt] [N] [on | off | @window | filename] [identifier]
The -i switch calls the specified identifier before a debug line is logged. The return value of the identifier is used as the debug line.

that's all what u can do


Go ahead, jump. 100,000 lemmings can't be wrong.
#55980 18/10/03 11:25 PM
Joined: Feb 2003
Posts: 12
K
kokoko Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Feb 2003
Posts: 12
that doesn t seem to work in mIRC 6.03 ...
i m not upgrading to 6.1* for dll compatibility reasons ...

it seams the -i switch only works in 6.1+ ...

thx anyway ..

#55981 19/10/03 12:02 AM
Joined: Oct 2003
Posts: 9
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Oct 2003
Posts: 9
Just read in the help files for both versions.
The -i switch is not mentioned at all
in the help file for 6.03, but is in 6.12.

-=> Wizard Suntop <=- The Magical Elf..


--==> Wizard Suntop <==--
#55982 19/10/03 04:10 PM
Joined: Oct 2003
Posts: 50
T
Babel fish
Offline
Babel fish
T
Joined: Oct 2003
Posts: 50
just use /debug @window, put the last line of the @window in a var (set %var $line(@window,$line(@window,0))), and get a timer up which compares the last line with the var, if it's different, then execute the code you want to...

#55983 20/10/03 09:53 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I dont think using a timer would work. Hes after intercepting PRIVMSG before mirc interprets them and he wants to do it in pre 6.12, so I think with some level of certianty i can say hes trying to block the v6-6.11 exploit, which , he cant do, if using a timer, the PRIVMSG will be processed directly after the debug window text is sent to it, i have tried using a timer down at 1 microsecond and the text is still beating it.

If how ever he isnt trying to stop the exploit and just wants to process the debug window in some way, i would suggest this..
Code:
Debug.Processor {
  window -hn @Hidden.Debug.Window
  debug -tn @Hidden.Debug.Window
  timer.Hidden.Debug.Window.Timer -omh 0 1 Hidden.Debug.Window.Timer.Event
}

Hidden.Debug.Window.Timer.Event {
  if ($line(@Hidden.Debug.Window,0) &gt; 0) {
    while ($line(@Hidden.Debug.Window,0) &gt; 0) {
      ;
      ; Do what ever you want here the debug line your checking is $line(@hidden.debug.window,1)
      ;
      dline @Hidden.Debug.Window 1
    }
  }
}
 


This way every line can be proccessed , as even at 1 microsecond, mirc still sometimes sends multiple lines to the debug window.

PS This wont process things before the mirc events sorry.
That the domain of v6.1+ and the -i switch. (i think its 6.1)


Link Copied to Clipboard