Working example till [a103]
Code: Select all
DetectHiddenWindows("ON")
OnMessage(0x2000, ()=>(MsgBox("ASD")))
1::SendMessage(0x2000,,,,"ahk_id " A_ScriptHWND)
Q::ExitApp
Code: Select all
---------------------------
ahk-test-code.ahk
---------------------------
Error: Too many parameters passed to function.
Line#
004: DetectHiddenWindows("ON")
005: {
005: Return (MsgBox("ASD"))
005: }
005: OnMessage(0x2000, ()=>(MsgBox("ASD")))
007: Return
---> 007: SendMessage(0x2000,,,,"ahk_id " A_ScriptHWND)
007: Return
008: ExitApp()
008: Return
009: Exit
010: Exit
010: Exit
The current thread will exit.
---------------------------
OK
---------------------------