this syntax will result correct dimensions, but when the scale is increased to 125%,
the working area width of the screen become 1093 but the above syntax will result 1366 which same as for 100%
how to find the working area after the zoom in previous post; possible duplicate
To my knowledge the System.Windows.Forms.Screen.PrimaryScreen.WorkingArea property returns a System.Drawing.Rectangle object that represents the working area of the primary monitor. The working area is the part of the screen that is available for application windows, and it excludes the taskbar and other docked windows. Based on variety of factors the resolution of working area (and the whole display) can change based on the scaling.
I can’t say for sure why it is happening on your machine. I suggest trying with following snippets:
I have tried the above syntax, Bounds returns the screen dimensions regardless of the scale percentage and for working area.width result the same value as Bounds
@krishna_r , It will display the Current Screen size. If you change the Screensize in Settings, it will show the respective screen size./ Try the code by changing the screen resolutions in Display Setiings
here resolution is 1920 x 1080 with 100% scale this case the working screen scenario is 1920 x 1040
when scale is 125% working screen is 1536 x 864
when scale is 150% working screen is 1280 x 720
this is the result im expecting with UiPath
try below html with diffrerent scale