I have a code that I am writing that can change the screen brightness according to user input, but this is based around the current screen brightness. Is there a way to obtain the screen brightness as an integer from command prompt?
In the past I have tried to do this by using the Power Config utility in cmd, but it failed. I tried looking it up and didn't find anything for Windows. The nearest solution I found was for IOS and Android.
I got lost after trying the following:
C:\Users\[me]>powercfg /q | find "(Display brightness)"
Power Setting GUID: aded5e82-b909-4619-9949-f5d71dac0bcb (Display brightness)
C:\Users\[me]>
I expected a value for screen brightness like '45' or '45%' to be returned, but it gave me a display ID instead. What do I do?