Reference last created control

Get help with using AutoHotkey and its commands and hotkeys
punchin
Posts: 398
Joined: 17 Jan 2014, 17:54

Reference last created control

14 Jul 2019, 04:05

I'm trying to output to a log the coordinates for controls that are made, but the controls reference the previous controls using x+5, etc. Is there a way, using GuiControlGet, that can reference the last control made to get their coordinates?
just me
Posts: 6373
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Reference last created control

14 Jul 2019, 05:26

If each control has its own unique ID:

Code: Select all

GuiControlGet, OutputVar , Pos, ControlID

Return to “Ask For Help”

Who is online

Users browsing this forum: flyingDman, Google [Bot] and 139 guests