Move mouse to control field?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
autohotkey_avatar
Posts: 27
Joined: 04 Aug 2022, 02:51

Move mouse to control field?

Post by autohotkey_avatar » 13 Aug 2022, 00:43

I'm able to enter data (6000) into a control field (Edit5) if a window (ahk_id given by this_id) like this:

Code: Select all

ControlSetText, Edit5, 6000, %this_id%
But is there a way to automatically move my mouse to the location of the Edit5 control field, without having to hardcode the location based on the dimensions from Window Spy?

User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Move mouse to control field?

Post by Xtra » 13 Aug 2022, 00:57

Use: ControlGetPos and then offset click or whatever you want to do with it.

Post Reply

Return to “Ask for Help (v1)”