In the beginning of my process I would like to get the current screen resolution. How can this be done?
Dim screenWidth as Integer = Screen.PrimaryScreen.Bounds.Width Dim screenHeight as Integer = Screen.PrimaryScreen.Bounds.Height
Do you know how I can do this in UiPath Studio?
I tried using the Assign activity by writing myVariable = Screen.PrimaryScreen.Bounds.Height.
But this did not work. it says ‘‘Screen is not declared’’.
You need to import the System.Windows.Forms namespace
Or alternatively, you can just use the entire line like:
Thanks Clayton and Arivu! It works perfect.