AutoHotkey Community

It is currently May 27th, 2012, 10:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: March 26th, 2008, 2:01 pm 
Offline

Joined: January 13th, 2008, 6:00 pm
Posts: 115
How to Use: Press and hold Ctrl then press [ to decrease volume and/or ] to increase.

Code:
; Volume Control
#MaxThreadsPerHotkey 2
#MaxThreadsBuffer On
^[::
^]::
volctrl:
IfWinNotExist, Volume Mixer
Run sndvol.exe
IfWinNotActive, Volume Mixer
WinActivate, Volume Mixer
Hotkey, ^[, voldown
Hotkey, ^], volup
KeyWait, Control
Sleep 400
WinClose Volume Mixer
Hotkey, ^[, volctrl
Hotkey, ^], volctrl
return
voldown:
Send {Volume_down}
SoundPlay, *-1
return
volup:
Send {Volume_up}
SoundPlay, *-1
return
#MaxThreadsBuffer Off
#MaxThreadsPerHotkey 1


Report this post
Top
 Profile  
Reply with quote  
 Post subject: im a noob
PostPosted: May 20th, 2008, 6:17 am 
I have windows XP and i would love to have this script work but I get some error message. Could anyone help me out please?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2008, 12:36 am 
Offline

Joined: December 1st, 2007, 3:01 pm
Posts: 6
TTT _sorry

instantrunoff, i like this script alot. i appreciate you writing a very simple volume script for vista. i know nothing about writing the code i am simply scavengering for what i want at this point.

i have slightly modified your code above to use the up/down arrow keys instead of [ and ] for volume control. (it easier on my laptop with those buttons).

i was wondering if there is an easy bit of code to allow the ctrl+right arrow key to toggle mute on/off?

thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2008, 12:40 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
Code:
^Right::Send {Volume_Mute}


Will toggle the mute state.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2008, 12:53 am 
Offline

Joined: January 13th, 2008, 6:00 pm
Posts: 115
timjay73 wrote:
TTT _sorry

instantrunoff, i like this script alot. i appreciate you writing a very simple volume script for vista. i know nothing about writing the code i am simply scavengering for what i want at this point.

i have slightly modified your code above to use the up/down arrow keys instead of [ and ] for volume control. (it easier on my laptop with those buttons).

i was wondering if there is an easy bit of code to allow the ctrl+right arrow key to toggle mute on/off?

thanks


Gee, thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2008, 1:26 am 
Offline

Joined: December 1st, 2007, 3:01 pm
Posts: 6
whew! that was fast! and it didnt look that hard either. oh well thanks krogdor


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 35 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group