Skip to content

Instantly share code, notes, and snippets.

@jibbius
Last active December 16, 2015 14:39
Show Gist options
  • Save jibbius/5450294 to your computer and use it in GitHub Desktop.
Save jibbius/5450294 to your computer and use it in GitHub Desktop.
Snagit: Send Captured File's Path To Clipboard -------------------------------------------------------------- - Ensure snagit is configured to save your capture as a file, that is then sent to an application. - Select this script as the application. - The script will then save the file's path to the clipboard.
'Snagit: Send Captured File's Path To Clipboard
'--------------------------------------------------------------
'- Ensure snagit is configured to save your capture as a file, that is then sent to an application.
'- Select this script as the application.
'- The script will then save the file's path to the clipboard.
Dim Clipboard
Set args = WScript.Arguments
if args.length > 0 then
arg1 = trim(args.Item(0))
else
arg1 = "(No Data)"
end if
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "cmd /C echo "&arg1&" | CLIP", 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment