DonationCoder.com Software > Coding Snacks
change f.lux brightness mouse remote (like VolumeĀ²)
skwire:
It works almost perfectly now, just one issue remains: can I 'mute' the wheel output so that when it successfully sends a command to f.lux, it will not also scroll the browser window up or down or change the volume in the media player?-brotherS (July 03, 2019, 11:59 AM)
--- End quote ---
The issue is that the code isn't sending a command directly to f.lux. Rather, it's just blindly sending the Alt+PgUp/Alt+PgDown commands. Try this:
--- Code: Autohotkey ---CoordMode, Mouse, ScreenmyEdgePixels := 10 WheelUp::WheelDown::{ MouseGetPos, myX If ( myX <= myEdgePixels ) { If ( A_ThisHotkey = "WheelUp" ) { SendInput, !{PgUp} ; Send Alt+PgUp. } If ( A_ThisHotkey = "WheelDown" ) { SendInput, !{PgDn} ; Send Alt+PgDown. } } Else { SendInput, {%A_ThisHotkey%} }}Return
Again, I don't have f.lux installed so this is untested with that application.
brotherS:
Thank you very much, skwire, it works even more almost perfectly now! :tellme: :D Just one tiny issue remains: in VLC, when not using fullscreen mode, the script activates and deactivates the menu with each wheelscroll. It's as if VLC recognizes the Alt from !{PgUp} and !{PgDn} as if the Alt key alone is being pressed. Any idea how to avoid that?
Navigation
[0] Message Index
[*] Previous page
Go to full version