entering a payload into Windows Command
Posted: Thu Nov 05, 2015 10:11 pm
First off thanks for any help and sorry for the I'm sure will be a noob question. I'm just in the process of starting to learn Python with no previous programming experience
First off I use TerRemote for Android and I'm trying to set up a seekbar to adjust the brightness on my laptop. I have the TerRemote part no problem but it's the Eventghost side that has me stumped. TerRemote sends the event "TCP.brightness ['192.168.0.30', u'70.0']" where of course the u'70.0 is the "brightness" payload.
As far as I have found "nircmd" is the best way to go about changing the screen brightness with a simple command of "nircmd setbrightness 70" and it works flawless. 70 of course can be replaced with any integer between 0 and 100.
What I can't figure out is how to take the u'70.0 payload and place it into the nircmd command.
Any help with an explanation would be much appreciated!!!
First off I use TerRemote for Android and I'm trying to set up a seekbar to adjust the brightness on my laptop. I have the TerRemote part no problem but it's the Eventghost side that has me stumped. TerRemote sends the event "TCP.brightness ['192.168.0.30', u'70.0']" where of course the u'70.0 is the "brightness" payload.
As far as I have found "nircmd" is the best way to go about changing the screen brightness with a simple command of "nircmd setbrightness 70" and it works flawless. 70 of course can be replaced with any integer between 0 and 100.
What I can't figure out is how to take the u'70.0 payload and place it into the nircmd command.
Any help with an explanation would be much appreciated!!!