topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday April 29, 2024, 9:52 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - SvenBent [ switch to compact view ]

Pages: [1]
1
Skrommel's Software / OnMessage(0x218,"FunctionName") question
« on: March 16, 2016, 11:23 AM »
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

Code: Autohotkey [Select]
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  3. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  4.  
  5.  
  6. OnMessage(0x218, "WM_POWERBROADCAST")
  7. Return
  8.  
  9. WM_POWERBROADCAST(wParam, lParam)
  10.         {
  11.         msgbox test
  12.         }

Is there some preparations I need to do to be able to get that message ?

Pages: [1]