Pause until region of interest defined

Hello,

I wrote a little print selection macro which works fine. I would like to remove a step.

In my macro, I trigger a snagit region of interest selection → press escape when done → a few actions to print. Works fine.

I would like to remove the press esc to continue step, and have the macro detect when the region of interest was defined and from there proceed to the next actions to print.

Note that:

  • ↑ Section Sign triggers the snagit region of interest
  • I define the region of interest on my trackpad
  • trigger is global macro group palette

thanks very much

Use PAUSE UNTIL action,
Under "Add Condition" select "Mouse Button Condition",
Set it to "left button" & "is pressed"

then copy/paste that action, and change the second one from "is pressed" to "is not pressed"

The problem with automating this is that if your selection isn't perfect from start to finish on the first attempt, you will run a print of the bad selection - no selection do-overs

1 Like

thank you for your reply.
It's a trackpad, not a mouse, and that's the problem. Otherwise I would have used the pause mouse click solution.
Sorry that my question was not clear.
Would you have a solution ?

Okay,… so I’m assuming you draw a box from a starting point to the diagonal opposite end, encasing your selection. How do you tell the system when you have started drawing the box and, more importantly when you have finished? If it is via the trackpad’s clicks, I’m pretty sure trackpad clicks are seen in KM as mouse clicks.

Otherwise, if it uses a two-finger gesture or something like that, and it can’t be redefined to a standard click in the preferences of Snagit, the only way I could think of would be to just flat-out PAUSE for 2.5-3 secs (in place of the PAUSE for ESCAPE key) to allow time for your selection to be defined, then just let the macro proceed.

1 Like

I will run some tests. Thank you very much

The only caveat is to be able to differentiate when you really have defined a region of interest, or if it was a mistake and you need to adjust it.

If there another step you do to mark the end of defining a region?
Or does it work similar to OSX built-in screen capture tool? (when you release keys → screenshot happens)

1 Like

It's the deliberate declaration of completion ("ESC" keystroke) that he is specifically trying to do away with - I think the better question is; is there a way the system can detect a successful completion? - I don't think there is a way the system can detect that without that final declaration by the user, unless the user is confident that the first selection will always be correct

Perhaps the only way to streamline this would be to provide something like a "double RIGHT-click" gesture equivalent right at the trackpad (instead of reaching for ESC) when a successful selection is made

2 Likes

@VDOCutter @hello
thank you both for your comments.

one comment and one question (can I use share menu to print ? to print using a preset ?)

I finally managed to find a solution which is to the problem.

Instead of detecting the completion of the ROI, I used all the settings including the settings → share options available in snagit with a panoply of impossible remember keyboard shortcuts (one per settings) to define a KM snagit palette of 7 macros using those shortcuts.

This is my question: I would like to create a macro to print automatically. I could use Pause until Snagit at front→ Print as @VDOCutter suggested above. The only slight inconvenience is that I have to choose the print preset which entails many tabs, delays etc and is bug prone. I am just wondering if there is a way to use the share menu to print, and if yes, can I use the share menu to print using a specific preset ?

thank you both again very much for your comments

does SnagIt support AppleScript? If yes you might just need to find which elements to click and/or select.

Also, when you mention the Print dialog, are you referring to the macOS system dialog?

1 Like

No it does not support AppleScript

By print dialog i basically mean anything that will send the image to the printer including the Mac OS dialog