=================================
=                               =
=FindFile DLL v1.5 by Soul_Eater=
=                               =
=================================

This dll was created as a speedier substitute for $findfile. 
It has 4 main functions, that work as follows:


1. 
Name: LbList

Usage: /dll findfile.dll LbList $dialog(dname).hwnd > did > directory
       //echo -a $dll(findfile.dll,LbList,$dialog($dialog(dname).hwnd > did > directory)


This function lists all the files in the directory ypu include in a dialog listbox.
The dialog must exist and the did must be a listbox. The DLL does check this for your safety as well.
'Directory' can be something like c:\windows\ or c:\window\*.exe
it does not matter. The listing occurs pretty much instantaneously. The DLL returns FF_OK.

Examples:
         //dll findfile.dll LbList $dialog(blah).hwnd > 2 > c:\program files\kazaa\my shared folder\*.mp3
         //echo -s $dll(findfile.dll,LbList,$dialog(blah).hwnd > 2 > c:\program files\kazaa\my shared folder\*.mp3)


2.
Name: ComboList

Usage: /dll findfile.dll ComboList $dialog(dname).hwnd > did > directory
       //echo -a $dll(findfile.dll,ComboList,$dialog($dialog(dname).hwnd > did > directory)

This function works exactly as the previous function, except it uses a combobox instead of a listbox.

Examples:
         //dll findfile.dll ComboList $dialog(blah).hwnd > 2 > c:\program files\kazaa\my shared folder\*.mp3
         //echo -s $dll(findfile.dll,ComboList,$dialog(blah).hwnd > 2 > c:\program files\kazaa\my shared folder\*.mp3)


3. TxtList

Usage: /dll findfile.dll TxtList directory > outputfile > toggle
   //echo -a $dll(findfile.dll,TxtList,directory > outputfile > toggle)
     

This function writes all the files in 'directory' to an outputfile, designated by you.
As in the previous functions, 'Directory' can be something like c:\mirc\*.* or c:\mirc\*.mrc
'Outputfile' can be anything of your choosing, from c:\output.txt or c:\mirc\file.bat
It returns the amount of files listed and FF_OK: 176 files. FF_OK

The toggles work like this:
+l = long filename (sftpblock.ini)
+ld = long filename + directory ( c:\mirc\sftpblock.ini )
+lb = long filename + size in bytes (sftpblock.ini 100)
+lbd = long filename + directory + size in bytes ( c:\mirc\sftpblock.ini 100 )
+s = short filename ( SFTPBL~1.INI )
+sd = short filename + directory ( c:\mirc\SFTPBL~1.INI )
+sb = short filename + size in bytes (SFTPBL~1.INI 100)
+sbd = short filename + directory + size in bytes ( c:\mirc\SFTPBL~1.INI 100)

THEY DO NOT HINDER DLL SPEED PERFORMANCE.


Examples:
         //dll findfile.dll TxtList c:\mirc\*.mp3 > c:\blah.txt > +ld
         //echo -s $dll(findfile.dll,TxtList,c:\mirc\*.mp3 > c:\blah.txt > +sb)

4. DllInfo

Usage: /dll findfile.dll DllInfo
       //echo -a $dll(findfile.dll,DllInfo,.)

Returns information on the DLL


Something interesting I discovered, is that the LbList and ComboList function return files
in the short filename format, IE nickel~1.mp3, whereas the TxtList function returns functions in the longer filename format, IE Nickelback - How you remind me!!s.mp3

I created 2 aliases to show how to use the TxtList command effectively:

For @window listing:
alias mp3list {
  var %f = c:\list.txt
  window -al @Mp3zz
  dll findfile.dll TxtList c:\mirc\*.mrc > %f > +ld
  loadbuf $lines(%f) @Mp3zz %f
}

For Dialog ID Listing:
alias mp3list2 {
  var %f = c:\list.txt
  dll findfile.dll TxtList c:\mirc\*.mrc > %f > +ld
  loadbuf $lines(%f) -o dname id %f
}


Questions? Comments?

Soul_Eater
souleata@xrs.net
SoulEata on AIM and Yahoo!      