I rewrite the script with 'map' and 'vec' plugins
since some people want to use Luciano's script.
I hope mine to be of some help to those.
I myself also find 'map'-plugin interesting since it supports
"Case Sensitivity" for its index string, though I disable this
in the script since current autocompletion implementation
doesn't care for 'Case'.
----------------------------------------------------------
1) At Startup of PowerPro
Run "[EMAIL PROTECTED]"
2) InputDefault with autocompletion
Run "[EMAIL PROTECTED]"
3) CommandLine with autocompletion
Run "[EMAIL PROTECTED]"
Hook "[EMAIL PROTECTED]" at 'HookCommandLine' command list.
-----------------runbox.powerpro--------------------------
@cmdline
*Exec CommandLine file history =aliasvec
quit
@cmdhook
local alias param
alias=word(x0,1)
param=remove(x0,length(alias)+1)
if(aliasmap[alias])do
do(aliasmap[alias]++"(param)","")
x0=""
endif
quit
@cmdinput
local alias param
x0=InputDefault(x0,"PowerPro run","file history =aliasvec")
alias=word(x0,1)
param=replacechars(x0,alias,"")
if(aliasmap[alias])do
do(aliasmap[alias]++"(param)","")
; x0=""
else
&(x0)
endif
quit
@cmdlists
static aliasmap aliasvec
local alias fh sz
fh=pprofolder++"scripts\programs.powerpro"
if(not validpath fh)
do("*Exec","ToFile "++fh)
if(map.exists(aliasmap))
map.destroy(aliasmap)
if(vec.exists(aliasvec))
vec.destroy(aliasvec)
aliasmap=map.create(100,0)
aliasvec=vec.create(100,1)
for(l=1; ;l=l+1)
sz=readline(fh,l)
if(pproflag 0)
break
if(select(sz,1)=="@")do
alias=word(remove(sz,1),1)
aliasmap[alias]=".programs@"++alias
aliasvec[vec.length(aliasvec)]=alias
endif
endfor
quit
-----------------------END--------------------------------
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/JV_rlB/TM
---------------------------------------------------------------------~->
**** EDIT YOUR POSTINGS !!!! ****
Please remove as much as possible from original messages before replying to them.
________________________________________________
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/