Created
November 7, 2018 02:16
-
-
Save TLMcode/6897c0aae9ea9080a7674949d4f199ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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