Author Topic: Keyboard shortcut to increase/decrease system volume in Windows 7  (Read 17635 times)

0 Members and 1 Guest are viewing this topic.

Offline afton

  • Thread Starter
  • Posts: 39
Is there any way to create a keyboard shortcut to increase/decrease system volume in Windows 7?
eg. bind F11 to decrease volume and F12 to increase volume.
using: Filco Majestouch Tenkeyless MX Brown switch

Offline Human

  • Posts: 596
Keyboard shortcut to increase/decrease system volume in Windows 7
« Reply #1 on: Sun, 08 January 2012, 00:29:13 »
Quote from: afton;485790
Is there any way to create a keyboard shortcut to increase/decrease system volume in Windows 7?
eg. bind F11 to decrease volume and F12 to increase volume.


Try AutoHotKey? For details go to the script sharing thread.

Offline startacked

  • Posts: 23
Keyboard shortcut to increase/decrease system volume in Windows 7
« Reply #2 on: Sun, 08 January 2012, 01:33:10 »

Offline TheProfosist

  • Posts: 3671
  • Location: Wisconsin, USA
  • Custom Layouts Only!
Keyboard shortcut to increase/decrease system volume in Windows 7
« Reply #3 on: Sun, 08 January 2012, 04:59:11 »
Quote from: Human;485806
Try AutoHotKey? For details go to the script sharing thread.

I second autohotkey

Offline Spharx

  • Posts: 21
Keyboard shortcut to increase/decrease system volume in Windows 7
« Reply #4 on: Sun, 08 January 2012, 06:00:14 »
You could also use autoit and mod this script:
Code: [Select]

#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Language=1031
#AutoIt3Wrapper_Add_Constants=n
#AutoIt3Wrapper_Run_Tidy=y

Func MEDIA_next()
Send("{MEDIA_NEXT}");
Beep(50, 500)
EndFunc   ;==>MEDIA_next

Func MEDIA_pause()
Send("{MEDIA_PLAY_PAUSE}");
EndFunc   ;==>MEDIA_pause

Func MEDIA_prev()
Send("{MEDIA_PREV}");
EndFunc   ;==>MEDIA_prev

Func MEDIA_up()
Send("{VOLUME_UP}");
Beep(200, 10)
EndFunc   ;==>MEDIA_up

Func MEDIA_down()
Send("{VOLUME_DOWN}");
Beep(50, 10)
EndFunc   ;==>MEDIA_down

Func MEDIA_mute()
Send("{VOLUME_MUTE}");
EndFunc   ;==>MEDIA_mute

HotKeySet("#{F8}", "MEDIA_next")
HotKeySet("#{F7}", "MEDIA_pause")
HotKeySet("#{F6}", "MEDIA_prev")
HotKeySet("#{F9}", "MEDIA_up")
HotKeySet("#{F10}", "MEDIA_down")
HotKeySet("#{F11}", "MEDIA_mute")

While 1
Sleep(100)
WEnd


Why is the hide content button missing here at geekhack ??

Offline limmy

  • Posts: 352
Keyboard shortcut to increase/decrease system volume in Windows 7
« Reply #5 on: Sun, 08 January 2012, 06:26:57 »
It is easy to do in autohotkey. If you simply want F11 and F12 to behave as Vol Down and Up, just add the following two lines in the script.

F11::Volume_Up
F12::Volume_Down

Offline Rajagra

  • Posts: 1930
Keyboard shortcut to increase/decrease system volume in Windows 7
« Reply #6 on: Sun, 08 January 2012, 07:10:42 »
Does Win 7 have the same problem as Vista? Each app has its own volume setting. If you use autohotkey to change the volume ... you only change autohotkey's volume!!!
F*^@ you, Microsoft!

If there are 2 keys you are willing to lose, you could map them to volume up/down using KeyTweak or Sharpkeys or similar.

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
Keyboard shortcut to increase/decrease system volume in Windows 7
« Reply #7 on: Sun, 08 January 2012, 08:32:17 »
Win7 does maintain separate volumes for apps, however I've never had an AHK script change anything but the master volume.  How odd.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline fohat.digs

  • * Elevated Elder
  • Posts: 6551
  • Location: 35°55'N, 83°53'W
  • weird funny old guy
Keyboard shortcut to increase/decrease system volume in Windows 7
« Reply #8 on: Sun, 08 January 2012, 09:32:02 »
I have used Key Tweak and it works pretty well, most of the time, but in XP, at least once a week, I have no sound and have to jump through a lot of hoops to get it back.

Sometimes making changes to "Sounds" in the Control Panel works, sometimes it inexplicably goes back to Mute when I close the Control Panel.

Occasionally I find the volume turned all the way down, as opposed to muted.

I am not doing any of this myself. I had just pegged it up to a "ghost in the machine" and assumed I would have to live with it.
“No political truth is of greater intrinsic value, or is stamped with the authority of more enlightened patrons of liberty: The accumulation of all powers, legislative, executive, and judiciary, in the same hands .… may justly be pronounced the very definition of tyranny.” —James Madison, Federalist 47
“All the powers of government, legislative, executive, and judiciary, result to the legislative body. The concentrating of these in the same hands, is precisely the definition of despotic government. An ELECTIVE DESPOTISM was not the government we fought for; but one .... in which the powers of government should be so divided and balanced among several bodies of magistracy, as that no one could transcend their legal limits, without being effectually checked and restrained by the others.” — Thomas Jefferson, commentary on Federalist 48