AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 8 matches
AutoHotkey Community Forum Index
Author Message
  Topic: Vista Audio Control Functions v2.1
codex

Replies: 148
Views: 47145

PostForum: Scripts & Functions   Posted: Fri Aug 28, 2009 6:56 am   Subject: Vista Audio Control Functions v2.1
I'm sure it's possible. Sndvol application have controls for that.

There is good example at msdn: http://msdn.microsoft.com/en-us/library/dd374921(VS.85).aspx

The chain to set volume could look ...
  Topic: Vista Audio Control Functions v2.1
codex

Replies: 148
Views: 47145

PostForum: Scripts & Functions   Posted: Thu Aug 27, 2009 3:57 pm   Subject: Vista Audio Control Functions v2.1
BTW is it possible to add a wrapper for ISimpleAudioVolume::SetMasterVolume to control session volume ?
Something like VA_SetSessionMasterVolume(level,title) ?
  Topic: Vista Audio Control Functions v2.1
codex

Replies: 148
Views: 47145

PostForum: Scripts & Functions   Posted: Thu Aug 27, 2009 2:21 pm   Subject: Vista Audio Control Functions v2.1
Oh sorry I really missed that. And thanks again !
  Topic: Vista Audio Control Functions v2.1
codex

Replies: 148
Views: 47145

PostForum: Scripts & Functions   Posted: Thu Aug 27, 2009 1:59 pm   Subject: Vista Audio Control Functions v2.1
You right. I added autohotkey.exe to DEP exceptions and VA_SetMute() works now on my system!

If DEP is enabled, errorlevel is 5 (Access Denied ?).

I think some message should be added to VA.ahk ...
  Topic: Vista Audio Control Functions v2.1
codex

Replies: 148
Views: 47145

PostForum: Scripts & Functions   Posted: Thu Aug 27, 2009 1:24 pm   Subject: Vista Audio Control Functions v2.1
Thanks! Here is output:

> Master Mute
> Speakers
no interface
> Sum
no interface
> Mute
> CD Audio
no interface
> Mute
> Rear Green In
no interface
> Mute ...
  Topic: Vista Audio Control Functions v2.1
codex

Replies: 148
Views: 47145

PostForum: Scripts & Functions   Posted: Thu Aug 27, 2009 12:12 pm   Subject: Vista Audio Control Functions v2.1
Thank you for help!

As I said I tried it from VA_SetMute(false, 1) to VA_SetMute(false, 10) - doesn't work at all.

New test script now quits at
if mute =
break
Because VA_GetM ...
  Topic: Vista Audio Control Functions v2.1
codex

Replies: 148
Views: 47145

PostForum: Scripts & Functions   Posted: Thu Aug 27, 2009 10:23 am   Subject: Vista Audio Control Functions v2.1
Thanks!

Of course I used correct syntax: VA_SetMute( true, 1..10) Smile
Your test script breaks at
if VA_GetMute(n_subunit, n_device) = ""
I tried VA_GetMute before and it returns empty ...
  Topic: Vista Audio Control Functions v2.1
codex

Replies: 148
Views: 47145

PostForum: Scripts & Functions   Posted: Thu Aug 27, 2009 8:55 am   Subject: Vista Audio Control Functions v2.1
Thank you for answer!

I spent about 4 hours yesterday for that. I tried both VA_SetVolume and VA_SetMute. I tried VA_SetMute(1..10) and other Microphone:1, playback:n, capture:n, Pink Rear In, Micr ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group