How to maximum/open application in taskbar


Right now, I am trying to open an application it would go directly to the taskbar. The function in UiPath that I am using is Start Process. How do I ensure that when I trigger start progress it will maximize the application for the rest of the code to work.

Thank you!

Have your tested with Attach Window and Maximize Window activities?

If that doesn’t work, option 2 is to use Invoke Code to open the application instead:

Dim psiProgram As ProcessStartInfo = New ProcessStartInfo("NOTEPAD.EXE")
psiProgram.WindowStyle = ProcessWindowStyle.Maximized


Thanks for your help! It is working but I just encountered a problem which is my application is running in the background. How do I bring it to the foreground?

Thank you

Have you tested the Activate activity?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.