If a button lacks an explicit g-label, an automatic label is assumed. For example, if the first GUI window contains an OK button, the ButtonOK label (if it exists) will be launched when the button is pressed. For GUI windows other than the first, the window number is included in front of the button's automatic label; for example: 2ButtonOK.
Needs to handle both labels and functions, and multiple guis
From docs:
Needs to handle both labels and functions, and multiple guis
Example 1
V1:
V2 (Converted):
V2 (Expected):