CoffeeChaton/vscode-autohotkey-NekoHelp

[notes] about `Gui, Add, Button` non-displayed function call case

CoffeeChaton opened this issue ยท 0 comments

Feat Provide

๐Ÿ”Ž Search keywords

https://www.autohotkey.com/docs/v1/lib/GuiControls.htm#Button

๐Ÿ’ป Exp Code

#Requires AutoHotkey v1.1.33.11
#SingleInstance Force
#Warn All, MsgBox


Gui, Add, Button, Default, AAAA
Gui, Show
return


; > https://www.autohotkey.com/docs/v1/lib/GuiControls.htm#Button
; > 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.

; Gui, Add, Button, Default, AAAA
; Button + AAAA
; ButtonAAAA
ButtonAAAA() {
    MsgBox, % "ButtonAAAA is call"
}

GuiClose:
GuiEscape:
ExitApp

Additional context

The difficulty of debugging and writing code are both very high...