Clip.Capture
Description
- Sets PowerPro's clipboard history tracking state.
Syntax
- Clip.Capture(keyword[, pathOrRefresh])
Parameters
- keyword
- (string) action to perform
-
Possible Values
- on
- Turns clipboard history tracking on.
- off
- Turns clipboard history tracking off.
- reverse
- Toggles the state of clipboard history tracking.
- pathOrRefresh
- (string) specifies either a folder path or the keyword "refresh"
- Optional.
-
Possible Values
- a folder path
- Changes PowerPro's clip capture storage folder to the specified folder.
- refresh
- Resets PowerPro's internal memory copy of clip files and dates.
- Used if a new text file is inserted into the clip folder without using clip capture.
Examples
- Clip.Capture("on")
Win.Debug(cliptrackon)- Turns clip tracking on, then debugs the state of clip history tracking.
- The debug window would show 0.
- Clip.Capture("reverse")
- Toggles the state of PowerPro's clip history tracking, turning it on if it is off, & off if it is on.
- Clip.Capture("on c:/web/cliptest")
- Sets the clip tracking folder to the specified path, which is defined with forward slashes as folder separators.
- Clip.Capture(?"on c:\web\cliptest")
- Sets the clip tracking folder to the specified path, which is defined with backslashes as folder separators using ?c..c syntax.
- Clip.Capture(?"on c:\program files\powerpro\clip")
- Sets the clip tracking folder to PowerPro's default clip folder.
- Clip.Capture("on "++pprofolder++"clip")
- Also sets the clip tracking folder to PowerPro's default clip folder.
- Clip.Capture("on refresh")
- Resets PowerPro's internal clips memory.
- Clip.Capture("off")
File.AllFiles(path,"Clip.FilePaste(\"|\\n\\n\")")
Clip.Capture("on")
- Turns clip tracking off, performs a clip intensive operation, then turns clip tracking back on again, eliminating the overhead from PowerPro updating its clip folder & memory for each file during the process.
Notes
- PowerPro clip history tracking is initially on, by default.