How to find left-side-center click coordinates of any screen automatically? Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
carno
Posts: 197
Joined: 20 Jun 2014, 16:48

How to find left-side-center click coordinates of any screen automatically?

20 Feb 2018, 08:50

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).
User avatar
Exaskryz
Posts: 2876
Joined: 17 Oct 2015, 20:28

Re: How to find left-side-center click coordinates of any screen automatically?

20 Feb 2018, 09:41

See also SysGet, MonitorWorkArea in case you need to account for the taskbar height.
carno
Posts: 197
Joined: 20 Jun 2014, 16:48

Re: How to find left-side-center click coordinates of any screen automatically?

20 Feb 2018, 10:15

Thanks very much for all your help! AHK is so powerful. :shock:

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Rohwedder, TAC109, tmplinshi and 269 guests