> Every time I think about using a ramdrive utility, it is due to 
> PowerPro's clipboard function always writing to disk instead of 
using 
> an array of memory.
> 
>

I don't plan to implement this natively, but I added a clip.write
("off") to powerpro.exe so you can implement with clipcaptured 
command list calling a script which uses vectors.

If you want to try, you can download this new exe from
http://www.powerpro.webeddie.com/download/powerpro.exe

You will also need improved vec 
http://www.powerpro.webeddie.com/download/vec.dll
http://www.powerpro.webeddie.com/download/vec.txt

If the following script file is called from the command list 
clipcaptured, it will capture clips and allow you to pick from list 
or from menu using appropriate entry point.  Must be called @init 
once to set up before using.

I have not tested much, and I have not tested load or save entry 
points at all, but you'll get the idea, I hope.

;;;;;;;;;;
; main entry point called from clipcpatured command list
; to save clip
;;;;;;;;;;
static vclips,  vline1,maxClips

if (clip.length>50000)
   quit
local i
local cl=clip.get
for (i=0; i<vec.length(vclips); i=i+1)
   if (vclips[i] === cl) do ;; effectively move dup to top of list
      vec.delete(vclips,i)
      vec.delete(vline1,i)
      break
   endif
endfor

vec.insertnogrow(vclips,0,cl)
vec.insertnogrow(vline1,0,line(cl,1))
;win.Debug(vline1[0])
quit


;;;;;;;;;;;;;;;;;;;;;
;Call here from startup to initialize
;;;;;;;;;;;;;;;;;;;;;

@init
static maxClips=20
static vclips =vec.create(maxClips,0)
static vline1 = vec.create(maxClips,0)
clip.write("off")
quit

;;;;;;;;;;;;;;;
;show menu and paste slected clip
;;;;;;;;;;;;;;;

@menu
static vclips,  vline1,maxClips
local which = vec.showmenu(vline1,64)
if (which>=0)
   clip.setpaste(vclips[which])
quit

;;;;;;;;;;;;
;show pick dialog and paste selection
;;;;;;;;;;;;
@pick
static vclips,  vline1,maxClips
local lin = vec.makelines(vline1)
pickstring(lin,"choose clip")
if (_pickedline_ >=1)
   clip.setpaste(vclips[_pickedline_-1])
quit

;;;;;;;;;;;;;
;called here with folder as arg to save clips to that folder
;;;;;;;;;;;;;
@save
static vclips, vline1, maxClips
local folder = arg(1)
local i
for (i=0; i<vec.length(vclips); i=i+1)
   fname = folder ++ ?"\clip"++i
   file.writeall(fname, vclips[i])
endfor
quit


;;;;;;;;;;;;;
;called here with folder as arg to load clips from that folder
;;;;;;;;;;;;;

@load
static vclips, vline1, maxClips
local folder = arg(1)
local i
for (i=0; i<vec.length(vclips); i=i+1)
   fname = folder ++ ?"\clip"++i
   if (not validpath(fname))
      quit
   vclips[i] = file.readall(fname)
   vline1[i] = line(vclips[i],1)
endfor
quit




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
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/
 



Reply via email to