Please Disable Ad-Block To View This Website.

If you block ads, this site can not survive!

Ads are very minimal for registered users. If you don't have an account please register now!

 Full Scripts
 MTS Themes
 File Queue
 Download mIRC
 Top Downloads
 Submit Form

Site Search

Link to us!

Home | Comments:
Average Rating:   6   $npFindFile v1.2 by FroggieDaFrog
None pausing findfile. This snippet searches for files and returns matches through signals without freezing mIRC.

Submitted Review Author's Updates
I think this is very useful - having mIRC freeze on an operation is a pain. Usually i used a DLL before but it looks like Froggie has done it with an alias.

Reviewed by codemastr_
Fix the $prop problem
Uploaded the CORRECT update for it :)

Made the timer an offline timer.
Changed $timers(0) to $timer(0)
Added the stop feature to the readme section
Added a mention of the pause of $findfile to the readme section

Thank you Sephiroth for your debugging help. :)

If you find any bugs, please make a comment of them, and I will fix them if they can be.


  Mode:    Create New Post

SephirothAug 7, 2010 4:57PM
Rating:     6The /npFindfile stop function is not mentioned at the "readme" part

if ($1 == stop) {
      ;if so, save how many timers are active
      var %t = $timers(0)

Should be $timer(0)

.shortfn doesn't work because, it never touches $findfile
Oh and the -o option should be added to the timer command

The idea is great ;)

FroggieDaFrogAug 7, 2010 5:53PM
I noticed some of it. Thank you. Will fix it and update as soon as I can(Have to wait a week between upload/updates)
About the .shortfn if you notice in the _npfindfile alias there is [ $+ [ $iif($prop,. $+ $v1) ] ] for it. The prop part does work.

Text edited by author on Aug 7, 2010 @ 5:57PM

SephirothAug 13, 2010 1:27PM
Yes it works there, but the signal will always get the long path because you never convert it.

;find the $4-th matching file in $2(directory)
  var %file = $iif($5,$findfile($2,$3,$4,$5),$findfile($2,$3,$4))
  ;if a file was found send signal with the match number and the file, if not send a signal with total matches found
  .signal npFindfile. $+ $1 $iif(%file,$4 %file,$calc($4 -1))

There is nothing of the shortfn =)

There should be something between those lines like:

if ($prop == shortfn) { %file = $shortfn(%file) }

FroggieDaFrogAug 13, 2010 4:55PM
Ok, I see what you are saying now. And it is fixed and ready for the next upload

FroggieDaFrogAug 13, 2010 1:01PM
Uploaded the wrong file. Will get that fixed asap. The file that is up, works, it just isn't using an offline timer.

Text edited by author on Aug 13, 2010 @ 1:03PM

Create New Post

You must be logged in to post messages.