Welcome Guest.   Make a donation to an author on the site November 20, 2009, 07:31:02 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Latest Review: Word Processor Roundup June 14, 2007.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: IDEA: Microphone enabler  (Read 4241 times)
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« on: April 01, 2009, 01:00:11 AM »

hi all

a simple utility for people with less computer knowledge, that can enable the mic and raise mic volume up when double clicked

that's all

thanks
Logged
skwire
Charter Member
***
Posts: 804



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: April 01, 2009, 02:15:06 AM »

a simple utility for people with less computer knowledge, that can enable the mic and raise mic volume up when double clicked

By enable, I assume you mean "unmute", right?  Also, what do you want to raise the volume to?  100%?  75%?
Logged

Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #2 on: April 01, 2009, 03:21:20 AM »

By enable, I assume you mean "unmute", right?  Also, what do you want to raise the volume to?  100%?  75%?

Right unmute

for the mic volume I think 85% would be great

Thanks
Logged
lanux128
Global Moderator
*****
Posts: 4,565



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: April 01, 2009, 04:08:57 AM »

Skrommel has written two scripts relating to this..

MicMute - toggles the microphone's input volume between 0% and 100%.
PushToTalk - Press and hold Win+S to activate the microphone, release to disable.

both can be found here at Skrommel Software.
Logged
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #4 on: April 01, 2009, 04:34:03 AM »

Skrommel has written two scripts relating to this..

MicMute - toggles the microphone's input volume between 0% and 100%.
PushToTalk - Press and hold Win+S to activate the microphone, release to disable.

both can be found here at Skrommel Software.

I already have checked those two before starting this thread

MicMute wont unmute the mic
PushToTalk needs to be loaded and win-s to be pressed in order to activate the mic

that's not what im looking for  smiley

I am looking for a little progy that when double clicked do two things:

1- unmute the mic (if found to be muted)
2- raise the mic volume up

thanks for the efforts
Logged
nite_monkey
Member
**
Posts: 509


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: April 01, 2009, 07:44:02 AM »

[copy or print]
SoundSet, 0, Microphone, mute
SoundSet, 85, Microphone

I haven't tested it, but if you are useing windows xp and have autohotkey installed, then you can use that, and when you run it, I belive it should unmute the microphone, and then set the volume to 85, and then it exits.
Though I don't know what it would do in vista, since each program that you run has its own seperate volume control.
« Last Edit: April 01, 2009, 07:45:41 AM by nite_monkey » Logged

[Insert really cool signature here]
lanux128
Global Moderator
*****
Posts: 4,565



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: April 01, 2009, 08:30:36 AM »

that's not what im looking for  smiley

I am looking for a little progy that when double clicked do two things:

1- unmute the mic (if found to be muted)
2- raise the mic volume up

no problem, PushToTalk can be modified to do what you want as nite_monkey has done. i don't have a microphone to test but i'd like to make a slight change to that script.. do give it a try and let us know. smiley

[copy or print]
#SingleInstance force
#NoEnv

SoundGet, GetVol, Microphone, Volume
If GetVol=0
SoundSet, 0, Microphone, Mute
;assuming that the preferred mic volume is 85
SoundSet, 85, Microphone

ExitApp
Logged
nite_monkey
Member
**
Posts: 509


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: April 01, 2009, 08:38:44 AM »

lol, thanks lanux, you made my garbage code look more profesional.  Thmbsup
you could test it by substituting the microphone part of the script with either wave or master volume. I can't test it right now though, because I'm at school, and my mic is at home.
Logged

[Insert really cool signature here]
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #8 on: April 01, 2009, 09:15:58 AM »

nite_monkey, lanux128

I appreciate your kindness and efforts to help me

I recompiled the script of Push to Talk over and over,with the suggested values but it turned out to be not doing anything at all  tellme

it's not making any errors though

I wonder what went wrong.



Thanks again

Logged
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #9 on: April 01, 2009, 09:36:23 AM »

Sorry about my last reply

It's working fine now Thmbsup Thanks lanux128  smiley

but still not what I was looking for. because the script is only effecting the playback control panel of the sound card and not the recording panel which I am interested in.
Logged
lanux128
Global Moderator
*****
Posts: 4,565



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: April 01, 2009, 06:54:00 PM »

but still not what I was looking for. because the script is only effecting the playback control panel of the sound card and not the recording panel which I am interested in.

like nite_monkey, i don't have a mic to test so you'll have to do the testing for us. Wink anyway, i think it's because the recording panel is an extra component so maybe we need to add a ':2' after microphone. i posting the modified code, see if it helps..

[copy or print]
#SingleInstance force
#NoEnv

SoundGet, GetVol, Microphone:2, Volume
If GetVol=0
SoundSet, 0, Microphone:2, Mute
;assuming that the preferred mic volume is 85
SoundSet, 85, Microphone:2

ExitApp

Logged
lanux128
Global Moderator
*****
Posts: 4,565



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: April 01, 2009, 06:56:32 PM »

lol, thanks lanux, you made my garbage code look more profesional.  Thmbsup

actually i should thank you as your code simplified my work. smiley
Logged
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #12 on: April 02, 2009, 06:46:18 AM »

lanux128

The new values are not doing anything to both control panels, playback and recording

maybe something is missing

Thanks a lot for your great share
Logged
nite_monkey
Member
**
Posts: 509


see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #13 on: April 02, 2009, 07:43:19 AM »

lanux128

The new values are not doing anything to both control panels, playback and recording

maybe something is missing

Thanks a lot for your great share
I tested both versions of the code yesterday when I got home from school. The first version changed the playback mic, and like Learning, the second version didn't do anything. I guess AHK just hates the recording panel.
Logged

[Insert really cool signature here]
lanux128
Global Moderator
*****
Posts: 4,565



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #14 on: April 02, 2009, 07:02:47 PM »

then we need to find out your sound hardware setup.. pls run this 'Sound Card Analysis' file and post the resulting window (see sample pic).



btw, Sound Card Analysis script is available in AHK's help file but this exe was kindly compiled by Target.

* SoundCardAnalysis.exe (197.98 KB - downloaded 613 times.)
Logged
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #15 on: April 02, 2009, 07:44:36 PM »

here you go

Logged
lanux128
Global Moderator
*****
Posts: 4,565



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #16 on: April 02, 2009, 08:01:07 PM »

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.. smiley

[copy or print]
#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
[copy or print]
#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
Logged
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #17 on: April 02, 2009, 10:23:17 PM »

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  smiley


Thanks a lot
Logged
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #18 on: April 02, 2009, 10:34:14 PM »

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
Logged
lanux128
Global Moderator
*****
Posts: 4,565



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #19 on: April 03, 2009, 12:21:14 AM »

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)

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. undecided
Logged
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #20 on: April 03, 2009, 08:44:22 PM »

Maybe best choice is Visual basic 6 I just don't know how to start  Sad
Logged
lanux128
Global Moderator
*****
Posts: 4,565



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #21 on: April 03, 2009, 09:01:19 PM »

just to compare notes, i happen to have the same soundcard but i don't have a built-in microphone. as can be seen from the pic, i have the mute option. maybe i'll see if i can borrow a mic and do some further testing.



Logged
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #22 on: April 04, 2009, 02:23:44 PM »

Staying tuned  smiley
Logged
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 1,941



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #23 on: April 05, 2009, 01:56:36 PM »

I see that 'SoundCardAnalysis.exe' is written up on gHacks today  thumbs up

Here's the link to it.

Logged

Chris
Learning
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #24 on: May 28, 2009, 07:58:11 PM »

to remember  smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
SMF © 2006-2009, Simple Machines LLC

social bookmark this page