How to find left-side-center click coordinates of any screen automatically? Topic is solved
How to find left-side-center click coordinates of any screen automatically?
I would like to find the click coordinates for the left-side-center (left edge center) of any screen (regardless of the screen size) automatically through a script so that I can use those numbers in Click x, y. Currently, I can find x and y mnaually using AutoScriptWriter or AutoIt3 Window Spy. PS: Doing this manually, coordinates for the upper left corner seems to be always: 0, 0. So if I can find the coordinates for the lower left corner (0, y) then I can find the left center (0,y/2).
Re: How to find left-side-center click coordinates of any screen automatically? Topic is solved
x is 0
y is A_ScreenHeight / 2
MouseMove, 0, % A_ScreenHeight / 2
y is A_ScreenHeight / 2
MouseMove, 0, % A_ScreenHeight / 2
Re: How to find left-side-center click coordinates of any screen automatically?
See also SysGet, MonitorWorkArea in case you need to account for the taskbar height.
Re: How to find left-side-center click coordinates of any screen automatically?
Thanks very much for all your help! AHK is so powerful.
Who is online
Users browsing this forum: marypoppins_1, mikeyww, Rohwedder, RussF and 136 guests