Reference last created control Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
punchin
Posts: 400
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: 6525
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Reference last created control  Topic is solved

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: Calvin, Chunjee, Google [Bot], JoeWinograd, just me, malcev, maxkill and 90 guests