Reference last created control Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
punchin
Posts: 439
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: 9495
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 (v1)”

Who is online

Users browsing this forum: Chunjee, ShatterCoder, SomeGuyFromEu and 169 guests