1. #1

    Looking for a quick sound volume macro advice

    Guys I'm trying to make a macro where if you click on its button it sets the sound volume to 0.9 (high) and if you right click on its button (or shift, ctrl click) if sets the master sound volume to 0.1(low). I've tried many different codes but non of them worked for me, would appreciate any advice on this! Thanks!

  2. #2
    Brewmaster Cryonic's Avatar
    15+ Year Old Account
    Join Date
    Nov 2007
    Location
    SYS 64738
    Posts
    1,287
    /run local MV = GetCVar("Sound_MasterVolume") if MV < "0.8" then SetCVar("Sound_MasterVolume", 0.9) print "High volume set" else SetCVar("Sound_MasterVolume", 0.1) print "Low volume set" end

    I did lazy coding on this one (no coffee in the machine atm) but it works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •