Get Position of Focus Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
robotarozum

Get Position of Focus  Topic is solved

Post by robotarozum » 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”