I tried the script below, but it is too unpredictable.
I think I will just modify the Capture Snippets command list instead
of this one.
Local sURL, sSubDomain, sEditedSubDomain
Clip.ClearClipboard
Win.Keys(?"^c")
wait.for(250)
sURL = BrowserURL
sSubDomain = BrowserSubDomain
sEditedSubDomain = ReplaceChars(Select(Clip, 15), ?":", ?"_")
sEditedSubDomain = ReplaceChars(sEditedSubDomain, ?'"', ?"-")
; paste clipboard to file
Clip.ToFile(?"C:\\Documents and Settings\\Kids\\My Documents\News\\" ++
sSubDomain ++ sEditedSubDomain ++ ?".txt")
; paste URL to file
Exec.ToFile("C:\\Documents and Settings\\Kids\\My Documents\\News\\" ++
sSubDomain ++ sEditedSubDomain ++ ?".txt", ?"[" ++ sURL ++ ?"]")
Saturday, March 5, 2005, 9:35:53 AM, you wrote:
brucexs> Clipboard is probably still clear as the ^c was not processed. You
brucexs> need to put a wait, eg wait.for(250), in the PowerPro script after
brucexs> the win.keys("^c") to give the program type to copy to clipboard
brucexs> before the script tries to read the clipboard
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/