this is the code -
Code: Select all
#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%
#include <BrightnessSetter>
PgUp::BrightnessSetter.SetBrightness(10)
PgDn::BrightnessSetter.SetBrightness(-10)
this pageup and pagedown works .
but if i run the script by going though windows explorer or autostart. it just shows up the brightness menu but does not change it.
also i have save the library in "Lib" folder where the .ahk script is saved.