Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Created November 7, 2018 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TLMcode/6897c0aae9ea9080a7674949d4f199ba to your computer and use it in GitHub Desktop.
Save TLMcode/6897c0aae9ea9080a7674949d4f199ba to your computer and use it in GitHub Desktop.
ComObjConnect( wSinkObj := ComObjCreate( "WbemScripting.SWbemSink" ), "EventHandler_" )
ComObjGet( "winmgmts:\\.\root\WMI" ).ExecNotificationQueryAsync( wSinkObj, "SELECT * FROM WmiMonitorBrightnessEvent" )
Return
EventHandler_OnObjectReady( eventObj )
{
tooltip display brightness changed!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment