How to automate Snagit to work in foreground (minimize Studio)?

How to automatically minimize Studio in order to use Snagit in the foreground to take a fixed sized screenshot?

Issue Description: To automate Snagit 2024, it is required to take a picture of a fixed size. Studio does not recognize this application and does not disappear.

How to manually hide or minimize the Studio window to take a picture from the desktop?

Resolution:

Approach #1

  1. Go to Studio -> Settings -> Design -> Execution -> Default behavior -> Select Run file option + Minimize on run (set the toggle to Yes)

7.png


Approach #2

  1. Close any Studio process instances
  2. Go to C:\Users\replace_with_your_username\AppData\Roaming\UiPath\UiStudio.v2.settings, set the RunFile value in the ExecutionBehavior parameter, and replace the false value with true in the MinimizeOnRun parameter
  3. Save the file and Reopen Studio.

8.png



Notes:

  • Run/Debug Default Behavior - Configure the default action for the Run/Debug ribbon button. Pick from Debug File, Run File, Debug Project, or Run Project.
  • Minimize on run - Use the toggle to set Studio to maximize or minimize when running projects.


Reference: Configuring Studio Settings .