Screen resolution check

Hi @GuusJoosten
Welcome to uipath community
–First in the bottom of the design panel next to variable, arguments click import
and mention this System.windows.forms namespace and import
–then in the assign activity get the dimensions with this
out_width = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width
out_height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height
where out_width ad out_height both are variable of type INT32
–use a if condition and check with the value you have
like this
out_width.ToString.Equals(“1980”) and out_height.ToString.Equals(“1280”)
if this satisfies it will go to the THEN part where you can continue with the activity you want
or it will go to ELSE part use Terminate workflow, which will stop the workflow

8 Likes