A simple keyboard volume control

If you are currently developing portable freeware or planning to do so, use this forum to discuss technical implementation, seek out like-minded developers for partnership, or solicit interested users for beta testing.
Message
Author
User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: A simple keyboard volume control

#16 Post by guinness »

To prove my theory in AutoIt this works.

Code: Select all

For $A = 1 To 10 ; Same as 10%
	Send("{VOLUME_DOWN}")
Next

Sleep(5000) ; Sleep 5 Seconds.

For $A = 1 To 10 ; Same as 10%
	Send("{VOLUME_UP}")
Next

Sleep(5000) ; Sleep 5 Seconds.

Send("{VOLUME_MUTE}")

Sleep(5000) ; Sleep 5 Seconds.

Send("{VOLUME_MUTE}")

User avatar
dmg
Posts: 325
Joined: Fri Jun 04, 2010 2:11 am
Contact:

Re: A simple keyboard volume control

#17 Post by dmg »

I am aware of the issues with Vista and Win7. It should work under Vista if it is run using XP compatibility mode. I have thought of modifying it to be more Vista friendly but I am still undecided.

As to names, I kind of like your suggestion of VKey. Thanks.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: A simple keyboard volume control

#18 Post by guinness »

True, but if running on a USB Drive and moving from PC to PC the user who have to do this every time surely?

User avatar
dmg
Posts: 325
Joined: Fri Jun 04, 2010 2:11 am
Contact:

Re: A simple keyboard volume control

#19 Post by dmg »

I agree that it would not be ideal. I will look into it some more. I only have access to XP so it is hard for me to plan for Vista and up. :?

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: A simple keyboard volume control

#20 Post by guinness »

But you know the same functions work on XP too.

User avatar
dmg
Posts: 325
Joined: Fri Jun 04, 2010 2:11 am
Contact:

Re: A simple keyboard volume control

#21 Post by dmg »

Of course they do, but that is not the only problem the script has in Vista and Win7. SoundGet does not work on them.

http://www.autohotkey.com/docs/commands/SoundGet.htm

So the balloon tip and changing tray icon would not function. At some point I may make a version specifically for Vista and Win7 but it would have to essentially be a completely redesigned program. I think for now I will leave things as they are. Anyone who wants the script to behave differently can modify it themselves, and more power to them. :D

Here is the newest version:

http://www.mediafire.com/download.php?2rri66lrdtlc9ot

Changes:
Checks whether muted on start.
Can select which sound device to effect.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: A simple keyboard volume control

#22 Post by guinness »

OK, I didn't know if you had read the limitations :D

Plus you may/or may not have seen this but here is SoundGet for Windows Vista/7. I would use OSVersion and then run the appropriate function. Maybe I will have a go at AHK, seems easy enough. :P

But it you don't have Vista+ don't worry about!

Ref: http://www.autohotkey.com/forum/topic23792.html+windows

User avatar
webfork
Posts: 10818
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: A simple keyboard volume control

#23 Post by webfork »

Where is this program now? I don't see it on your site. Is it V-Key http://crzyinc.weebly.com/v-key.html?

On a related note, there's a super simple AHK script that has an unfortunate name, given that Nirsoft put out something by the same name with a lot more features. Still, if you like elegant, open solutions:

http://www.sqoshsoft.co.uk/scriptlets/volumouse/

User avatar
dmg
Posts: 325
Joined: Fri Jun 04, 2010 2:11 am
Contact:

Re: A simple keyboard volume control

#24 Post by dmg »

Yes, that is the same app. It is on my to do list to update the app so it will worn Vista+. There are a few things ahead of it on the list though. 8)


Post Reply