Check if Window's border is touching edge of the screen

How do I do this? Please consider that I want this to this to look at the edge of the final screen if multiple monitors are present.

Thanks in advance

Which edge? :wink:

Check the ScreenCount function so you know how many screens there are and then you can loop over them with the Screen method using the properties of the Screen class…

if (ScreenCount() > 0) then // does the screencount return anything if it is running headless? for i as integer = 0 to ScreenCount() // screen math code here to work out where the top, left, bottom and right edges of the whole desktop are next end if

[quote=38817:@shao sean]Which edge? :wink:

Check the ScreenCount function so you know how many screens there are and then you can loop over them with the Screen method using the properties of the Screen class…

if (ScreenCount() > 0) then // does the screencount return anything if it is running headless? for i as integer = 0 to ScreenCount() // screen math code here to work out where the top, left, bottom and right edges of the whole desktop are next end if[/quote]
Thanks