Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mute Status
#1
is there a way I can check to see if the speakers are 'muted'?
An old blog on QM coding and automation.

The Macro Hook
#2
Download the attachment and import to QM.
Also need WINAPI2: http://www.quickmacros.com/forum/showthr...p?tid=1371

Macro AudioMixer help
Code:
Copy      Help
;Gets or sets audio device volume or mute state.
;Uses WINAPI2: http://www.quickmacros.com/forum/viewtopic.php?p=6619
;Does not work on Windows XP.

;EXAMPLES

#compile "__AudioMixer"
AudioMixer x
sel ListDialog("Get volume (%)[]Set volume 50%[]Set volume 100%[]Get mute[]Mute[]Unmute")
,case 1 out x.GetVolume
,case 2 x.SetVolume(50)
,case 3 x.SetVolume(100)
,case 4 out x.GetMute
,case 5 x.SetMute(1)
,case 6 x.SetMute(0)


Attached Files
.qml   AudioMixer.qml (Size: 5 KB / Downloads: 370)
#3
Works great! thanks.

anyway to not get these errors?

Quote:Warning in <open ":9:">AudioMixer.Init: Some tagPROPVARIANT members that have implicit or explicit constructor/destructor/copy functions are in union with other members. These functions will not be called. You may have to explicitly clear these members to avoid memory leak. <help #IDP_DIR_OPT>?
Warning in <open ":9:">AudioMixer.Init: Some PROPVARIANT members that have implicit or explicit constructor/destructor/copy functions are in union with other members. These functions will not be called. You may have to explicitly clear these members to avoid memory leak. <help #IDP_DIR_OPT>?
Warning in <open ":9:">AudioMixer.Init: Some PROPVARIANT members that have implicit or explicit constructor/destructor/copy functions are in union with other members. These functions will not be called. You may have to explicitly clear these members to avoid memory leak. <help #IDP_DIR_OPT>?
An old blog on QM coding and automation.

The Macro Hook
#4
#opt nowarnings 1
#5
works great....thanks.
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)