Hello sgp,

You asked me to post some of my ideas for using the new clip features
but it's too soon for most of them.
Them are being reconstructed to take advantage of the new
clip tracking features and their latest filenaming methods.

I'll post those things later, when they settle down.

Meanwhile, at least I can share my script which gives every
application its own private clipboard, in addition to the
system's standard clipboard.

Hotkeys Win+X Win+C Win+V are easy to get used to.

Win+C  :  [EMAIL PROTECTED]
Win+X  :  [EMAIL PROTECTED]
Win+V  :  [EMAIL PROTECTED]

For this particular project, I include 0 zero in the @labels and
filenames, to avoid confusion with my other clip related projects.

Note: my scheduled startup script sets some global variables including:

  R = esc(?"\r\n",?"\")
  RR = esc(?"\r\n\r\n",?"\")
  ClipDir1 = ?"c:\shells\powerpro\clip"
  ClipDir2 = ?"c:\shells\powerpro\clip2"
  clip.SetSaveLoadFolder("c:\shells\powerpro\clip2")

So files saved by PowerPro's clipboard tracking [All] in \clip
are separate from all my other saved clips in \clip2

;;------------- .ClipSaver includes:

@GetShortText
  local z_ShortText = select(clip.get,200)
  if(z_ShortText == "")do
    jump exit
  endif
  regex.replaceg(z_ShortText, ?"[^A-Za-z0-9 ]", " ", "z_ShortText")
  regex.replaceg(z_ShortText, ?" +", " ", "z_ShortText")
  local z_ShortText = select(z_ShortText,20)
quit(z_ShortText)

@Exit
quit("")

@App0_Cut
;; from Win+x hotkey. Continues into the Copy section.
  local z_Cut = 1

@App0_Copy
;; from Win+c hotkey
  local z_cut

  ;; First we backup this app's clipboard file 0, replacing the previous backup.
  ;; Use * wildcard for the date and time (or short text) part of the filename.
  ;; Use line(list,1) just in case there's more than one file match (should not 
be)

  file.delete(ClipDir2 ++ ?"\" ++ exefilename ++ "_0bak_*.clipsaver")
  local z_filepath = line(file.listfiles(ClipDir2 ++ ?"\" ++ exefilename ++ 
"_0_*.clipsaver"),1)
  if(z_filepath)do
    file.move(z_filepath, replacechars(z_filepath, ?"_0_", ?"_0bak_"))
  endif

  clip.save("temp.ClipSaver",ClipDir2)
    clip.copy
    wait.for(150)
    if(z_Cut)do
      keys {del}
      z_Cut = 0
    endif
    local z_ShortText = [EMAIL PROTECTED]
    if(z_ShortText == "")do
      z_ShortText = (date ++ "_" ++ time)
    endif
    clip.save(ClipDir2 ++ ?"\" ++ exefilename ++ "_0_" ++ z_ShortText ++ 
".ClipSaver")
  clip.load("temp.ClipSaver",ClipDir2)
quit

@App0_Paste
;; from Win+v hotkey
  clip.save("temp.ClipSaver",ClipDir2)
    local z_filepath = line(file.listfiles(ClipDir2 ++ ?"\" ++ exefilename ++ 
"_0_*.ClipSaver"),1)
    if(not z_filepath)do
      win.message("No app clipboard for " ++ exefilename ++RR++ "First use 
Win+c in this application.")
      jump exit
    endif
    clip.load(file.nametype(z_filepath),ClipDir2)
    clip.paste
  clip.load("temp.ClipSaver",ClipDir2)
quit

;;---------------------------------------




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
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