januismer Posted June 5, 2008 Share Posted June 5, 2008 I'm trying to set microphone properties within C:\WINDOWS\system32\sndvol32.exe. The problem I have is that some of my computers already have it setup correctly. I'd like to test whether the microphone is being muted or not. Can anyone think of a way to do that? Thanks! Link to comment Share on other sites More sharing options...
Zedna Posted June 5, 2008 Share Posted June 5, 2008 ControlCommand() and IsChecked command Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
januismer Posted June 6, 2008 Author Share Posted June 6, 2008 ControlCommand() and IsChecked commandThanks! Link to comment Share on other sites More sharing options...
Bert Posted June 6, 2008 Share Posted June 6, 2008 Audio.au3 will do it also. look in my sig The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
aNewLyfe Posted June 6, 2008 Share Posted June 6, 2008 (edited) wow sorry, i havent see the first post .. Edited June 6, 2008 by mistakilla ~ Every Living Thing is a Code Snippet of World Application ~ Link to comment Share on other sites More sharing options...
speedi Posted November 30, 2009 Share Posted November 30, 2009 ControlCommand() and IsChecked command OK! I got this far with my script. Can't seem to get it just right. Can you help me? if ControlCommand ( "Volume Control", "Volume", "[TEXT:&Mute], "IsChecked", ) then MsgBox(4096, "mute check", "Master Volume is muted", 10) Else MsgBox(4096, "mute check", "Master Volume is NOT muted", 10) endif I get a syntax error on the 1st line... Link to comment Share on other sites More sharing options...
andybiochem Posted November 30, 2009 Share Posted November 30, 2009 (edited) OK! I got this far with my script. Can't seem to get it just right. Can you help me? if ControlCommand ( "Volume Control", "Volume", "[TEXT:&Mute], "IsChecked", ) then MsgBox(4096, "mute check", "Master Volume is muted", 10) Else MsgBox(4096, "mute check", "Master Volume is NOT muted", 10) endif I get a syntax error on the 1st line... try replacing the first line with this: if ControlCommand ( "Volume Control", "Volume", "[TEXT:&Mute]", "IsChecked" ) then ...just removed the last comma, and added a " Edited November 30, 2009 by andybiochem - Table UDF - create simple data tables - Line Graph UDF GDI+ - quickly create simple line graphs with x and y axes (uses GDI+ with double buffer) - Line Graph UDF - quickly create simple line graphs with x and y axes (uses AI native graphic control) - Barcode Generator Code 128 B C - Create the 1/0 code for barcodes. - WebCam as BarCode Reader - use your webcam to read barcodes - Stereograms!!! - make your own stereograms in AutoIT - Ziggurat Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Box-Muller Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Elastic Radio Buttons - faux-gravity effects in AutoIT (from javascript)- Morse Code Generator - Generate morse code by tapping your spacebar! Link to comment Share on other sites More sharing options...
speedi Posted November 30, 2009 Share Posted November 30, 2009 try replacing the first line with this: if ControlCommand ( "Volume Control", "Volume", "[TEXT:&Mute]", "IsChecked" ) then ...just removed the last comma, and added a " that didn't help still getting syntax error on the 1st line after removing the comma... Link to comment Share on other sites More sharing options...
andybiochem Posted November 30, 2009 Share Posted November 30, 2009 that didn't help still getting syntax error on the 1st line after removing the comma...did you add the " as well..... I edited my post within a minute or so of making it - Table UDF - create simple data tables - Line Graph UDF GDI+ - quickly create simple line graphs with x and y axes (uses GDI+ with double buffer) - Line Graph UDF - quickly create simple line graphs with x and y axes (uses AI native graphic control) - Barcode Generator Code 128 B C - Create the 1/0 code for barcodes. - WebCam as BarCode Reader - use your webcam to read barcodes - Stereograms!!! - make your own stereograms in AutoIT - Ziggurat Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Box-Muller Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Elastic Radio Buttons - faux-gravity effects in AutoIT (from javascript)- Morse Code Generator - Generate morse code by tapping your spacebar! Link to comment Share on other sites More sharing options...
speedi Posted November 30, 2009 Share Posted November 30, 2009 Yes that was the problem. I thought I was going nuts since I copied the command line from your post and pasted it - before you edited it... Now with the quote it works just fine... Thanks a ton! Link to comment Share on other sites More sharing options...
speedi Posted November 30, 2009 Share Posted November 30, 2009 Yes that was the problem. I thought I was going nuts since I copied the command line from your post and pasted it - before you edited it... Now with the quote it works just fine... Thanks a ton! Oh! Oh! the first line does not get a syntax error, but the script displays the same message no matter if the volume is muted or not.. I did make a slight change, but it did not help... if ControlCommand ( "Volume Control", "Volume", "[TEXT:&Mute]", "IsChecked" ) = 1 then added the = 1 The msg is NOT muted no matter what... Link to comment Share on other sites More sharing options...
Bert Posted December 1, 2009 Share Posted December 1, 2009 Use the API. It is much more stable. Look for Audio.au3 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Zedna Posted December 3, 2009 Share Posted December 3, 2009 Oh! Oh! the first line does not get a syntax error, but the script displays the same message no matter if the volume is muted or not.. I did make a slight change, but it did not help... if ControlCommand ( "Volume Control", "Volume", "[TEXT:&Mute]", "IsChecked" ) = 1 then added the = 1 The msg is NOT muted no matter what... You have wrong ClassNameNN for checkbox control. Run Au3Info move cursor above checkbox and look at Control Tab at value for ClassNameNN. Then use it this way: if ControlCommand ( "Volume Control", "Volume", "ClassNameNN", "IsChecked" ) = 1 then Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
speedi Posted December 3, 2009 Share Posted December 3, 2009 You have wrong ClassNameNN for checkbox control. Run Au3Info move cursor above checkbox and look at Control Tab at value for ClassNameNN. Then use it this way: Thanks for idea, but That does not work, this does: if ControlCommand('[CLASS:Volume Control]', '', 1000, 'isChecked') then Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now