Sorry if I'm posting in the wrong place. but I have a question with AHK and Skrommels seems to be fond of that.
I'm trying to get the "going to standby" message from windows in my AHK scripts by using the OnMessage() command.
but it seems like my function ever gets called
Is there some preparations I need to do to be able to get that message ?
I'm trying to get the "going to standby" message from windows in my AHK scripts by using the OnMessage() command.
but it seems like my function ever gets called
Code: ( autohotkey)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetBatchLines -1
OnMessage(0x218, "WM_POWERBROADCAST")
Return
WM_POWERBROADCAST(wParam, lParam)
{
msgbox test
}Is there some preparations I need to do to be able to get that message ?






