It is currently May 3rd, 2024, 11:14 am

Help with AutoIt?, Laptop Brightness Control (SOLVED)

Get help with creating, editing & fixing problems with skins
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Re: Help with AutoIt?, Laptop Brightness Control

Post by UnforgivenRevival »

One more question. is there a way to make it so it reduces 20 or whatever every execution? for example. !execute ["nircmd.exe" setbrightness -20]?
or does it have to be a definite number?
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: Help with AutoIt?, Laptop Brightness Control

Post by KreAch3R »

Try using "changebrightness" instead of "setbrightness":
This command only works on laptop/netbook computers. It allows you to change the brightness of the laptop screen. The [level] parameter is brightness value to change. positive value increases the brightness, and negative value decreases the brightness.
{mode} is optional parameter that may conatin the following values:
1 = Change the brightness under AC power.
2 = Change the brightness under DC power.
3 = Change the brightness for both AC power amd DC power (The default).
Examples:
changebrightness 7
changebrightness -10
changebrightness 5 2
http://www.nirsoft.net/utils/nircmd2.html#using
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Re: Help with AutoIt?, Laptop Brightness Control

Post by UnforgivenRevival »

Thankyou very much. Works great except for some reason it "skips" brightness levels. My laptop has 8 different brightness levels and even setting to changebrightness 8 or -8, it goes 1(lowest), 3, 5, 7, 8(highest).


Anything lower than a value of 8 or -8 doesnt change anything brightness wise. Its not a big deal but why is it skipping?
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: Help with AutoIt?, Laptop Brightness Control

Post by KreAch3R »

Unfortunately I have no idea. Obviously, it isn't a Rainmeter problem, so you should try contacting Nircmd developers with your laptop information, to see if they can do something.

P.S. Don't quote me on this, but I thought that the values you were supposed to input would be in a total of 100% brightness. That means, if your laptop has 8 brightness levels, It should change level every 100/8 ~=12,5 units. Try it, but again, I have no idea if that's correct or not.
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image
User avatar
UnforgivenRevival
Posts: 310
Joined: June 7th, 2012, 2:25 am
Location: Philadelphia, PA

Re: Help with AutoIt?, Laptop Brightness Control (SOLVED)

Post by UnforgivenRevival »

Yeah i tried it with multiple values and it still skips. Its not that big of a deal. I still get 5 different brightness levels with nircmd. I was just wondering if anyone knew, if anyone has gone through the same thing. Thanks for all the help tho.