mIRC Home    About    Download    Register    News    Help

Print Thread
#235796 13/01/12 02:27 PM
Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
anyone knows how to create a script
which monitors the mirc folder or something and if you add a new script then msg $chan



(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
/help $findfile

I belive what you looking for can be found there in the help file..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
thank you very much ^^


(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You'd need to run a timer to keep checking the folder for new files. Of course, if the script is created somewhere else, it won't be detected that way. Or, if you want to know about scripts that are loaded in mIRC and ignore any that are in the folder and not loaded, then you can use a timer to check $script(0). If the number that gives you changes, then a script was added. If you need script names in your output, the 0 can be replaced with the script number to get the name of the script.


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2010
Posts: 51
L
Lenooox Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: Jan 2010
Posts: 51
omg it is very difficult for me frown

thank you ur answer


(\__/)
(='.'=)
(")_(")
Bunny Hopp

QuakeNet@ #Lenoox <> visit http://www.insaneboard.comeze.com
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
alias scriptloop {
  var %x = $script(0)

  while (%x) {
    echo -a $script(%x)
    dec %x
  }
}

replace
echo -a $script(%x)

with

echo -a $nopath($script(%x))

Will only return the name of the file, without the path, did this just to show you a example on how you can do this..

; -- Edit

Forgot to say this goes in your remote section.. ALT + R in mirc. usage: /scriptloop <- in any window in mirc.

Last edited by sparta; 13/01/12 04:16 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard