Giter Club home page Giter Club logo

ahk-hide-volume-osd's Introduction

AutoHotkey Hide Volume OSD

This is an AutoHotkey script you can use to hide (and restore) the Windows volume OSD (on-screen display).

Whenever you adjust the volume in Windows, a volume level display appears at the top left, sometimes with a large media summary of a video you are watching. This covers up a portion of the screen for several seconds and can be really bothersome while working.

Windows provides no way of disabling it. Some apps allow you to disable their large media summaries, but it's not always simple (browsers require you to search for obscure settings in their about:config tab, for example), and you still have the annoying volume display itself.

Not any more!

How to use it

  1. Install AutoHotkey version 1.x in order to run .ahk scripts. Not tested with AutoHotkey version 2.
  2. Download all files from this repo and extract/place them where you want.

From here, there are three ways to run this script.

  1. Run hide-volume-osd.ahk and show-volume-osd.ahk to hide and show the volume OSD. Use this to manually turn it on/off when you want, or just to test things out. The volume OSD will only remain hidden until you restart Windows again, so you will have to run hide-volume-osd.ahk after every restart.
  2. Run install.ahk to have Windows automatically run hide-volume-osd.ahk after every restart, so it's always hidden. Run uninstall.ahk to undo this.
  3. Advanced users: Run hide-by-window.ahk to only show or only hide the volume OSD in certain windows. You can edit the script and modify the hideByDefault and exeNames variables to control this behavior.

You can also take the VolumeOsd.ahk class and use it in your own scripts if you prefer.

Credits

The technique used by this script to find and toggle the volume OSD was discovered by UnlimitedStack/HideVolumeOSD.

ahk-hide-volume-osd's People

Contributors

1000thsummer avatar sophice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ahk-hide-volume-osd's Issues

Simple way to start on bootup

Found this charming script and like it.

There is a way to run the script automatically when windows boot up by adding a scheduled task on user log on.

The action is like

  <Actions Context="Author">
    <Exec>
      <Command>pathToAutoHotKeyFolder\AutoHotkeyU64.exe</Command>
      <Arguments>pathToGitRepo\ahk-hide-volume-osd-main\hide-volume-osd.ahk</Arguments>
    </Exec>
  </Actions>

How to display OSD with this script?

Hi, could you please help me, I have already spent several hours looking for a solution.

There is a simple script to adjust the volume with the media keys for a device that is not selected by default. It works fine, but the problem is that the OSD is not displayed. And I really need Windows OSD. The one that display your script. How to combine this script with your?

; Use the Soundcard Analysis script found here to set these parameters
; https://www.autohotkey.com/docs/commands/SoundSet.htm#Soundcard
DeviceNumber := 1
ComponentID := MASTER

Volume_Up::
SoundSet, +2, %ComponentID%, VOLUME, DeviceNumber
return

Volume_Down::
SoundSet, -2, %ComponentID%, VOLUME, DeviceNumber
return

Volume_Mute::
SoundSet, -1, %ComponentID%, MUTE, DeviceNumber
return

Volume goes from 100 to 98 on Windows startup

Was previously using the 1.3 version of UnlimitedStack/HideVolumeOSD which also had this issue. They seem to have fixed it in 1.4 but that version has a different bug which doesn't allow you to run the program in silent mode because the -show and -hide parameters are broken, and I'd also like to stick to using a simple ahk script instead of using a separate program if possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.