--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
> If this works, I can add an option to process clipboard as above 
> when trying to make a file name from the text on the clipboard.

How turn off PP's writing clips?
*Clip Write off wasn't working.

Anyway, here's a script I wrote. Anyone interested may test it.

// At PP's startup
cl.create("ClipCaptured",1).insert(0).AddLeft(".ClipCaptured")

------------------- ClipCaptured.PowerPro -----------------------------
if(!dll.call("OpenClipboard|ui",win.handle("c=PowerProMain")))
quit

if(dll.call("IsClipboardFormatAvailable|ui",13))do
local hClip,pClip,sClip,xClip

hClip=dll.call("GetClipboardData|ui",13)
pClip=dll.call("GlobalLock|ui",hClip)

if(pClip)do
dll.call("lstrcpynW|s+ ui ui","xClip",pClip;;+
,min(dll.call("lstrlenW|ui",pClip),50)+1)
dll.call("WideCharToMultiByte|ui ui s+ i s+ i ui ui";;+
,0,0,"xClip",-1,"sClip",272,0,0)

dll.call("GlobalUnlock|ui",hClip)
endif

endif

dll.call("CloseClipboard|")
sClip[?'["*?:<>|/\\]']=" "
;sClip=ReplaceChars(sClip,?'"*?:<>|/\ ')

clip.tofile(pprofolder++?"clip\"++time++" "++sClip++".txt")
quit
-----------------------------------------------------------------------

Sean




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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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