mIRC Home    About    Download    Register    News    Help

Print Thread
F
fluor2
fluor2
F
I am active in more than one channel and more than one network, and I often have problem finding back to who sent me what message about a specific topic. So it would be really nice to be able to search all windows and not only the current with CTRL-F. Can you please make an option for me, or at least provide me with code that will work?

R
Rand
Rand
R
The ability to do this can be easily coded in mIRC via the use of /filter.

Example:

Code:
alias wildfind {
  var %w = @wildfind , %i = 1 , %text = $1-
  window -he %w
  clear %w
  while ($chan(%i)) {
    aline %w -------------- Channel: $v1
    filter -wwzb $v1 %w %text
    aline %w 
    inc %i
  }
  window -aw3 %w
}


/wildfind *Some*Wildcard*Text*


Edit: This script will search your (current networks) channels, and any matches found will be printed into the "@wildfind" window.

Last edited by Rand; 06/03/09 10:39 PM.
F
fluor2
fluor2
F
thank you very much

F
fluor2
fluor2
F
uh this one does not scan all networks! could somebody please help me.

R
RusselB
RusselB
R
Use /scon -at1 /wildfind *Some*Wildcard*Text*

That will perform the same /wildfind on all networks that you are connected to.

R
Rand
Rand
R
Don't do it the way RusselB suggested, or the window would only contain the last networks scanned channels. There's two options for this, one: you can do it the way RusselB said, but remove the /clear command from the script, or you can do it the more optimal way, and code it in (so that you don't do something stupid by accident with the double evaluating nature of /scon).

With just a couple changes you can make it safe and idiot proof. (or so we hope....)
Code:
alias wildfind {
  var %w = @wildfind , %text = $1-
  window -he %w | clear %w

  var %n = 1
  while ($scon(%n)) {
    scon %n
    aline 4 %w --------[ NETWORK: $network ]----------

    var %i = 1
    while ($chan(%i)) {
      aline 4 %w -------------- Channel: $v1
      filter -wwzb $v1 %w %text
      aline %w 
      inc %i
    }

    scon -r
    inc %n
  }

  window -aw3 %w
}

R
RusselB
RusselB
R
Ooops... I missed the /clear command when I was looking over the code before making my suggestion.
Not sure how I missed such an obvious line.


Link Copied to Clipboard