ligius- / lenovo-backlight-control

Simple wrapper for Windows 8/10 to control the Thinkpad keyboard backlight
Apache License 2.0
40 stars 14 forks source link

Mouse event turn off #2

Closed kismadar14 closed 3 years ago

kismadar14 commented 3 years ago

Hi dear developer! I want to turning of the backlight on when i move the mouse. I want to the light on if just typing. Can i setting this function somewhere? Thank you!

ligius- commented 3 years ago

Hi,

I think you can edit the .AHK script and replace _ATimeIdle with _ATimeIdleKeyboard. I haven't tried it, but it should work. https://www.autohotkey.com/docs/Variables.htm#TimeIdleKeyboard Perhaps the idle timer in AHK can also be configured to ignore mouse events, which it should, by default, but somehow this did not work for me. Perhaps removing the line ;#InstallMouseHook can achieve this, even though it's commented out.

kismadar14 commented 3 years ago

Thank you the help! Its function!