Skip to content

[notes] about Gui, Add, Button non-displayed function call caseΒ #90

@CoffeeChaton

Description

@CoffeeChaton

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...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions