ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Microphone enabler

<< < (4/5) > >>

Learning:
here you go

IDEA: Microphone enabler

lanux128:
from the screenshot it shows the mic as the 2nd component unless you have two microphones in the playback panel. anyway, try both of these scripts and post the message boxes' contents. also it might help to know what kind sound card do you have.. :)


--- ---#SingleInstance force
#NoEnv

SoundGet, micmute, Microphone, Mute
If micmute = On
  SoundSet, 0, Microphone, Mute ; unmute the mic
;assuming that the preferred mic volume is 85
SoundSet, 85, Microphone
Msgbox Error: %ErrorLevel%
ExitApp
--- ---#SingleInstance force
#NoEnv

SoundGet, micmute, Microphone:2, Mute
If micmute = On
  SoundSet, 0, Microphone:2, Mute ; unmute the mic
;assuming that the preferred mic volume is 85
SoundSet, 85, Microphone:2
Msgbox Error: %ErrorLevel%
ExitApp

Learning:
well ...

the first code to the left gave out (error:0)

the second code to the right gave (error: Mixer doesn't have that many of that component type)

My sound card is Realtek High Definition Audio

and i just have one built in mic

I noticed that recording control panel doesn't have mute option but only select option, I wonder if this has anything to do with this task  :)


Thanks a lot

Learning:
Please take a look at this script:


#SingleInstance force

SoundGet,micvo,Microphone:2,Volume
If micvol=<90
{
  SoundSet,0,Microphone:2,On
  SoundSet,85,Microphone:2,Volume
}
Else
  SoundSet,85,Microphone:2,Volume
  SoundSet,0,Microphone:2,On

ExitApp

this script is not doing any thing to the recording panel, but when I change Microphone:2 to Microphone:1 it works perfectly on the playback panel exactly the way I want it.

I just don't know how to call the recording commands

Regards

lanux128:
the first code to the left gave out (error:0)

the second code to the right gave (error: Mixer doesn't have that many of that component type)-Learning (April 02, 2009, 11:23 PM)
--- End quote ---

this means AHK is not able to connect to the 2nd component (recording panel) as returned by the SoundCard Analysis program. that's why ':2' wouldn't work while ':1' works fine. either that or i'm missing something.

anyway, i'm afraid that we have to put this into KIV for the time being. :-\

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version