AutoHotkey: How to control the volume with your numpad +/- keys in Windows

(edited)

Mit diesem Tool könnt ihr die Lautstärke einfach mit den Numpad +/- Tasten in Windows regeln.

AutoHotkey ist ein kleines nützliches Skritping-Programm für Windows, mit dem ihr Tasten kleine Skripte zuweisen könnt, die dann ausgeführt werden, wenn man diese Taste drückt.

Die meisten PCs und Notebooks haben bereits Media-Keys, mit denen man die Lautstärke regeln kann, aber das Problem ist oft, dass diese Tasten doppelt mit den Funktionstasten (F1-F12) belegt sind, und man diese Funktion mit einer eigenen FN-Taste umschalten muss. Das ist lästig.

Dazu kommt, dass die Position der Lautstärken-Tasten nicht sehr praktisch ist und sich je nach Hersteller unterscheiden können, meine Bluetooth Logitech-Tastatur hat zum Beispiel die Lautstärken-Regelung auf F9 und F10, HP und Samsung auf F7 und F8, Microsoft (Surface) auf F5 und F6.

Daher habe ich mir gedacht ich nutze AutoHotkey um die Lautstärke mit den Numpad +/- Tasten zu regeln, die ich normalerweise sowieso kaum verwende.

Dazu müsst ihr AuthotKey 2.0 installieren und folgendes Skript zum Beispiel in eurem User-Folder anlegen:

NumpadAdd:: {
  Send "{Volume_Up}"
  }
NumpadSub:: {
  Send "{Volume_Down}"
  }

Dann die Skript-Datei ausführen und dann sollte im Hintergrund AutoHotkey bereits laufen und mit den Numpad +/- Tasten könnt ihr jetzt die Lautstärke steuern.

Ob das Skript läuft, könnt ihr auch am AutoHotkey-Tray-Icon in der Windows Taskleiste erkennen.

Damit das Skript jedes mal, wenn ihr den Computer neu startet, auch mitgestartet wird, müsst ihr es noch in eurem Startup-Folder verlinken. Dazu im Datei-Explorer "shell:startup" öffnen und dann dort einen Shortcut auf das Skript erstellen.

Voilà!

Habt ihr AutoHotkey bereits gekannt? Was wären nützliche Usecases für euch? Was würdet ihr noch gerne mit der Tastatur steuern?

image.png

https://www.autohotkey.com/

English

With this tool, you can easily control the volume using the numpad +/- keys in Windows.

AutoHotkey is a small, useful scripting program for Windows that allows you to assign small scripts to keys, which are then executed when you press that key.

Most PCs and notebooks already have media keys that can be used to control the volume, but the problem is often that these keys are assigned both as your function keys (F1-F12) and media keys, and you have to switch this function with a separate FN key. This is annoying.

In addition, the position of the volume keys is not very practical and can vary depending on the manufacturer. For example, my Bluetooth Logitech keyboard has volume control on F9 and F10, while HP and Samsung have it on F7 and F8, Microsoft (Surface) on F5 and F6.

So I thought I'd use AutoHotkey to control the volume with the numpad +/- keys, which I hardly ever use anyway.

In order to do this, you need to install AuthotKey 2.0 and create the following script in your user folder for example:

NumpadAdd:: {
  Send “{Volume_Up}”
  }
NumpadSub:: {
  Send “{Volume_Down}”
  }

Then run the script file and AutoHotkey should already be running in the background, allowing you to control the volume with the Numpad +/- keys.

You can also see whether the script is running by checking the AutoHotkey tray icon in the Windows taskbar.

To ensure that the script starts every time you restart your computer, you need to link it to your startup folder. To do this, open “shell:startup” in File Explorer and create a shortcut to the script there.

Voilà!

Were you already familiar with AutoHotkey? What would be useful use cases for you? What else would you like to control with the keyboard?

0.05920510 BEE
7 comments

Das wäre nuchts für mich, ich nutze die Tasten sehr oft.

Ich bräuchte eine Taste die meinen Kontostand erhöht, wenn ich drauf drücke !LOL

Das wohl nicht so einfach machbar.

Mir fällt so nichts ein, wofür ich sonst noch ein Shortkey benötigen würde. Nutze die die es gibt und die brauche ich dann oft. Am ehesten strg+a,c,v,x,s damit bin ich schon zufrieden.

0.00447236 BEE

Ich bräuchte eine Taste die meinen Kontostand erhöht, wenn ich drauf drücke !LOL

Haha, so eine Taste wäre praktisch 😂

0.00696809 BEE

Solltest du es hinbekommen, denk an mich bitte, die anderen müssen es ja nicht erfahren !LOL

0.00446221 BEE

AutoHotkey is one of those tools you don’t think about until you need it, and then you realize how much you can automate with just a few lines.

0.00446221 BEE

I used autohotkey to map keys for street fighter 5 as you couldn't customize them 🤣

0.00446214 BEE

I found it more difficult than using the default keys.

0.00445365 BEE

I use hotkeys when playing games so I understand this quickly

!BBH

0.00000000 BEE

I am familiar with AutoHotkey since I have used that before

0.00000000 BEE

I know about it, but I don't use it much. I think I used it once or twice in the past.

0.00000000 BEE