How can I call a SnagIt preset via command line or something similar?

  • 1
  • Question
  • Updated 11 months ago
Most of my captures are screenshots where "printscreen" is mapped, but I take a decent amount of video recordings and I want to map that preset to those extra keys on my keyboard (see screenshot).

SnagIt doesn't recognize those keys for "Add Hotkey". I can call command line functions with those keys however, so I'd like to do something like, "snagit.exe /capture /preset=MyVideoPreset"

Photo of contact

contact

  • 7 Posts
  • 2 Reply Likes

Posted 11 months ago

  • 1
Photo of Ed Covney

Ed Covney

  • 1043 Posts
  • 524 Reply Likes
First, is it a "programmable" keyboard?  The keyboard model number would help.  If programmable, have you installed the drivers?  You define "hot key" functions using the keyboard's software and when programmed, you're ready to  test it using Snagit or any other windows program. 
My wife has a Microsoft "Sidewinder" 6 x 3 programmable keys, but fairly limited in functionality.
Good luck!

Photo of contact

contact

  • 7 Posts
  • 2 Reply Likes
It is "Microsoft Natural Ergonomic 4000", which is one of their most popular ones. I do have the drivers installed for it.

When SnagIt tries to map the keypress, it doesn't detect the key. I'm assuming it's only looking for standard keyboard keys.

I did find a work-around that other users may find useful.

I mapped the preset I wanted to "Ctrl+Shift+PrintScreen"...it can be any unique key combination.

Then I created a Powershell to press the keystrokes automatically, then I launch the PowerShell to trigger the keypress.


<#
    This PS will press Ctrl+Shift+PrintScreen, which is mapped in SnagIt to video preset
# ^  = Ctrl
# +  = Shft
# {PrtSc} = Print Screen Key
#>
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.SendKeys]::SendWait('^+{PrtSc}');
This probably seems like a big work around to avoid pressing 3 keys together...but hey I wanted to push 1 key to do it.

Photo of Ed Covney

Ed Covney

  • 1043 Posts
  • 524 Reply Likes
Goto  "https://www.youtube.com/" and search for:
"microsoft natural ergonomic 4000 keyboard".  Watch a few videos on how to get the keys to do what you want - Snagit can't program it. And if Snagit is anything like Camtasia, it may prevent you from "training" your keyboard while Snagit is running. 

BTW, I have a Logitech G510S that I swear by - 18 x 3 (color coded) programmable keys per profile, # of profiles is only limited to the disk space available.
Photo of Ed Covney

Ed Covney

  • 1043 Posts
  • 524 Reply Likes
I skipped over the last part of your original question:
"snagit.exe /capture /preset=MyVideoPreset" if you change this to:

"C:\Program Files\TechSmith\Snagit 2019\Snagit32.exe /capture /preset=MyVideoPreset",
it may work. If not, put that in a batch file and run the batch file from the keyboard.

Other tries:
Run "C:\Program Files\TechSmith\Snagit 2019\Snag . . . "  or
Start ""C:\Program Files\TechSmith\Snagit 2019\Snag . . ."

If it doesn't work, add a second line "Pause" (w/o quotes) to get the error message.
Different apps require different compositions of the batch files, for example one of my keys runs a batch file containing: (FireFox is my default browser, but I prefer to run YouTube w/o ads using the BRAVE browser . . . so I launch:

line 1:  start "YouTube" "C:\Users\edcov\AppData\Local\BraveSoftware\Brave-Browser\Application\brave.exe" https://www.YouTube.com/

line 2: exit

Photo of contact

contact

  • 7 Posts
  • 2 Reply Likes
Those command line arguments don't work. I just made up examples ones.

I found this: http://informationworker.ru/snagit10.en/snagit_4_technical_reference.4.35.html

But there are no SnagIt links.

My method works, but it seems like a reasonable idea to provide command line arguments...maybe not.
Photo of Ed Covney

Ed Covney

  • 1043 Posts
  • 524 Reply Likes
I gave you the snagit link:    (Snagit Editor has a different name). 
"C:\Program Files\TechSmith\Snagit 2019\Snagit32.exe " you may need to alter for your version, and 32 vs 64 bit. My example above works for 32 bit, v2019.

Command line options are easy but may be confusing. For example TS's        <filename>  means "C:\Users\edcov\Desktop\snagitpic01.png" you have to fully enumerate. 

Confidently using command lines does require some experience and an ability to be comfortable using DOS or Windows script commands and the do's and don't associated with the file system (explorer).
Photo of contact

contact

  • 7 Posts
  • 2 Reply Likes
I'm not sure if you're skimming my replies or not...but I completely made up "/capture" and "/preset=". It turns out "/capture" actually works, but "/preset=" is made up.

I have a video preset, and it just take a screen capture.

I needed to know the valid command line arguments (I'm a software engineer so I'm comfortable with all things computer).

I found a work around already.


TechSmith - Can you publish all valid command line switches?
Photo of Ed Covney

Ed Covney

  • 1043 Posts
  • 524 Reply Likes
(I'm a software engineer so I'm comfortable with all things computer).
Then you ought to know better than to skirt matters and lead anyone in a wrong direction.
BTW, In my experience, "engineers" don't sign in with a pseudonyms ('contact').
Photo of contact

contact

  • 7 Posts
  • 2 Reply Likes
BTW, In my experience, "engineers" don't sign in with a pseudonyms ('contact'). 
I don't know what made you decide to be rude, but "contact" is just the name on the email account I purchased the software with. I didn't choose the name for the forums.

And I appreciate any attempts at helping. I mentioned I'm a software engineer to let you know, as politely as I could, that I'm comfortable with the command line and I don't need to YouTube anything.

My question is specifically looking for command line arguments, if any, that are accepted. I started to decompile the application and related assemblies to see if I could quickly find available command line switches, but I don't want to spend too much time sifting through. I would think...as a software company...TechSmith might publish somewhere the supported command line args.