1
Skrommel's Software / Re: OnMessage(0x218,"FunctionName") question
« on: March 18, 2016, 02:21 PM »
Adding in more and more stuff Igot it to work then i started to removde stuff and got it al lthe way down to this
which works. so just the Gui +Lastfound made it all work perfectly
I also tried your new script and i got message registration succeed
WOOOT time to put it in aaction and eliminate some looping check on A_timeIdle
Thank you for getting me on the right track
#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
Gui +LastFound
OnMessage(0x218, "WM_POWERBROADCAST")
return
WM_POWERBROADCAST(wparam, lparam)
{
msgbox %wparam% %lparam%
}
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetBatchLines 1
Gui +LastFound
OnMessage(0x218, "WM_POWERBROADCAST")
return
WM_POWERBROADCAST(wparam, lparam)
{
msgbox %wparam% %lparam%
}
which works. so just the Gui +Lastfound made it all work perfectly
I also tried your new script and i got message registration succeed
WOOOT time to put it in aaction and eliminate some looping check on A_timeIdle
Thank you for getting me on the right track