From e831a7416ba2dd1f342e710c6048c8fa97291d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 1 Dec 2020 23:18:35 +0100 Subject: Switch to Windows 7 --- tt.volume.ahk | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'tt.volume.ahk') diff --git a/tt.volume.ahk b/tt.volume.ahk index e01be7d..5946469 100644 --- a/tt.volume.ahk +++ b/tt.volume.ahk @@ -13,15 +13,14 @@ RAlt & F5::SetVolume(GetKeyState("Shift") ? -2 : -1) SetVolume(n) { - SoundGet, w, WAVE - SoundSet, 15 - w := round(w) + n - if (w > 100) - w := 100 - if (w < 0) - w := 0 - SoundSet, %w%, WAVE - OSD(w) + SoundGet, s + s := round(s) + n + if (s > 100) + s := 100 + if (s < 0) + s := 0 + SoundSet, %s% + OSD(s) } /* -- cgit v1.2.3