Page 1 of 1

Reference last created control

Posted: 14 Jul 2019, 04:05
by punchin
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?

Re: Reference last created control  Topic is solved

Posted: 14 Jul 2019, 05:26
by just me
If each control has its own unique ID:

Code: Select all

GuiControlGet, OutputVar , Pos, ControlID