Last active
November 7, 2018 02:18
-
-
Save TLMcode/305ea08e64d0c96d4f1c6bf8998125ca 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
DispBrtObj := new DispBrtClass() | |
Return | |
class DispBrtClass | |
{ | |
__New() | |
{ | |
ComObjConnect( this.wSinkObj := ComObjCreate( "WbemScripting.SWbemSink" ), this.EventHandler ) | |
ComObjGet( "winmgmts:\\.\root\WMI" ).ExecNotificationQueryAsync( this.wSinkObj, "SELECT * FROM WmiMonitorBrightnessEvent") | |
} | |
class EventHandler | |
{ | |
OnObjectReady( eventObj ) | |
{ | |
Coordmode Tooltip, Screen | |
Tooltip % "Display Brightness: " eventObj.Brightness, 10, 10 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment