Code: Select all
OnMessage(0x44, OnMsgBox)
msgboxResult := MsgBox("Hello, world!", "This is AutoHotkey", 0x4243)
OnMsgBox(wParam, lParam, msg, hwnd) {
wintitle := "ahk_id " hwnd
ControlSetText "This", "Button1", wintitle
ControlSetText "is", "Button2", wintitle
ControlSetText "a", "Button3", wintitle
ControlSetText "test", "Button4", wintitle
}
I think I'm misunderstanding what the hwnd id is for.Error: Target window not found.