The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: Bill Cravener on October 25, 2011, 11:02:36 AM

Title: Simulate multimedia keyboard key presses.
Post by: Bill Cravener on October 25, 2011, 11:02:36 AM
 :bg

Here is a very simple approach to control the system sound for those folks with keyboards that have no multimedia keys so that you can control the systems master sound by muting and controlling the volume. It uses the Windows SendInput API to simulate multimedia keyboard key presses. I've tested it on Vista and Windows 7 and it should work on any machine from Windows 2000 up.

When you run the program it sits in your system tray. Pressing Ctrl + F12 toggles muting, pressing Ctrl + Up Arrow key increases volume, pressing Ctrl + Down Arrow key decreases volume.

http://www.quickersoft.com/examples/ControlSnd.zip

Or it can be downloaded from my site link below.
Title: Re: Simulate multimedia keyboard key presses.
Post by: dedndave on October 25, 2011, 10:17:59 PM
works great here, Bill   :U
xp mce2005 sp3
Title: Re: Simulate multimedia keyboard key presses.
Post by: Bill Cravener on October 26, 2011, 10:53:20 AM
Thanks for that Dave. You know that lady client of mine wasn't happy with just the means to mute her speakers she wanted a means to control the volume also. You know women, their never satisfied unless they have it their way! :bg
Title: Re: Simulate multimedia keyboard key presses.
Post by: dedndave on October 26, 2011, 02:04:21 PM
well - she has to be liking this - with the OSD and all   :U
Title: Re: Simulate multimedia keyboard key presses.
Post by: Bill Cravener on October 26, 2011, 03:43:26 PM
Quote from: dedndave on October 26, 2011, 02:04:21 PM
- with the OSD and all   :U

You meaning Old School Democrat? Yep, thats me! :wink

Or more likely Officer on Special Duty! :bg
Title: Re: Simulate multimedia keyboard key presses.
Post by: dedndave on October 26, 2011, 04:03:26 PM
Official Super Dave   :bg
Overly Sexy Drunk   :lol

(http://www.masm32.com/board/index.php?action=dlattach;topic=17610.0;id=9874)

or, it could be...
On Screen Display
Title: Re: Simulate multimedia keyboard key presses.
Post by: FORTRANS on October 27, 2011, 12:21:07 PM
Hi Bill,

   Works on Windows 2000.

Regards,

Steve N.
Title: Re: Simulate multimedia keyboard key presses.
Post by: Bill Cravener on October 27, 2011, 01:25:02 PM
Speaking of keyboards I have an MS Comfort Curve 2000 multimedia keyboard I bought at TigerDirect last summer on sale for only $9 bucks (they still have them at $20 bucks on their site). It also has some extra keys besides the cut, copy, paste Ctrl+ keys such as find, all, underline, bold and italic that come in handy. Anyway, I love its soft key press feel and with the add-on IntelliType software it shows that small volume scroll bar above the system tray Dave shows in his attached picture. Why anyone needs a volume indicator I haven't quite figured out because my ears tell me when I've changed the volume setting up or down, but then thats just me I guess. :bg
Title: Re: Simulate multimedia keyboard key presses.
Post by: dedndave on October 27, 2011, 01:33:51 PM
yah - i like the intellitype and intellipoint software capabilities
you can program all the multi-media keys and so on
although, i think they are resource-hoggish
mine is a MS Laser 6000 V2 (mouse and keyboard) - i love it
excellent feel and the battery life is very good compared to other brands i've tried
Title: Re: Simulate multimedia keyboard key presses.
Post by: AnthonyScott on November 04, 2011, 06:36:33 AM
I have tried this and works really well without any kind of fault. I am happy with its performance.