I made a very simple script that lowers your computer volume when you hold your Push To Talk button. It is my first script and it is very basic.... But is very helpful to me as I don't use headphones/earbuds. You will need to change the button around. It is said to mouse button 4 I think? The Browser Back Button. I use it for GTAVRP
(shameless plug to my buddy's discord server for his GTARP Server) [URL removed by moderator]. Basically, it just lowers your volume to 20% until you let go of PTT. You can't hear them if they are trying to interupt you but who cares what others have to say right?
Code: Select all
#Requires AutoHotkey v2.0
;Creator: FastRide2
;V1
;Finished 11/13/23 8:56pm
;It is set to the mouse button that does browser back.
;Link to key names: https://www.autohotkey.com/docs/v1/KeyList.htm
Great:
if GetKeyState("XButton1")
{
;MsgBox "At least one Backbutton key is down."
SoundSetVolume 20
}
else
{
;MsgBox "Neither Backbutton key is down."
SoundSetVolume 100
}
^q::
{
ExitApp
}
GoTo Great
Like I said it was my first ever script and I didn't know how to use loops yet. I am still a beginner with the program. This small bit of code took me a couple of hours to complete. I am sure you could make it even better. But why bother if this works fine?