I have this:
Code: Select all
XButton1::Send {Volume_Down}
XButton2::Send {Volume_Up}
return
Cheers.
Code: Select all
XButton1::Send {Volume_Down}
XButton2::Send {Volume_Up}
return
Code: Select all
XButton1::
While GetKeyState(A_ThisHotkey, "P") {
Send {Volume_Down}
SoundBeep, 1500, 30
Sleep, 50
}
Return
This works, thanks but it behaves in a strange manner, not like the default volume up and down keys. Is there a way to make it work as default? (speed, acceleration and increments)mikeyww wrote: ↑03 Mar 2021, 18:12Code: Select all
XButton1:: While GetKeyState(A_ThisHotkey, "P") { Send {Volume_Down} SoundBeep, 1500, 30 Sleep, 50 } Return
It's not absolutely perfect, but It's pretty close. Thank you so much for your help.mikeyww wrote: ↑04 Mar 2021, 08:59You would have to program that into your script. The A_TimeSince... built-in variables can help you determine what acceleration factor you need. You can then adjust the sleep accordingly. If you need different increments, you can send the key more than once. You build whatever rules you want for the increments & acceleration.
Users browsing this forum: Mateusz53, MrHue, mstrauss2021, Rohwedder, Spawnova and 305 guests