Windows PowerPro 3.8.05 http://www.windowspowerpro.com/download/ppro3805.zip - fixed problem with blanks in script file commands when initial keyword not followed by blank
- added hot key support for mouse 4 and mouse 5 buttons for W2k and XP
- use ;; (two semi-colons) to put comment at end of script file line
- added contextlast variable which is set 0 for all files processed by explorer context menu except it is set 1 for last file
brucexs пишет:
FYI, I added the contextlast feature because I wanted a script which
created winamp M3u files from those selected in explorer and I
needed a way to find out when all files were processed so I could
sort.
I added the command
.makem3u(_file_)
to my explorer context command list and created the following script:
; for first file, create vector to hold file names since
; I want to sort before writing to m3u file
; my file names start with track number to sort by
if (context == 0) do
static v=vec.create(30,20)
v[0]=file.nametype(arg(1))
context = context+1
; for all files but first and list, just store file name and type
elseif (not contextlast)
v[context]=file.nametype(arg(1))
context=context+1
; for last file, sort the names and write them to a .m3u file in the
; same folder as the files; use input function to get file name
else
v[context]=file.nametype(arg(1))
vec.sort(v)
local i
local fname = file.folder(arg(1))++"\"++input("Enter file name")
++".m3u"
local h=file.open(fname,"w")
for (i=0; i<vec.length(v);i=i+1)
file.writeline(h,v[i])
endfor
file.close(h)
vec.destroy(v)
endif