Get Position of Focus

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
robotarozum

Get Position of Focus

14 Jul 2018, 08:15

Hello! I use this code to get the focus into a control:

Code: Select all

Loop,
{
Sleep 200
ControlFocus, ListView20WndClass2, Boston
ControlGetFocus, E_Focus, Boston
if E_Focus = ListView20WndClass2
break
}
Which is a list that I can navigate with arrow keys. Unfortunately I also need the script to double click on the entry I navigate to, and since many people will be using this script with different monitor resolutions I really want to avoid using "click x y". Is there any way for autohotkey to return the position of the current focus?

Thanks! :)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Decar, doodles333, mikeyww and 220 guests