I have question:
How to force working KeyEventArgs when the program in tray?
protected override void OnKeyDown(KeyEventArgs keyEvent)
{
if (keyEvent.KeyCode == Keys.E)
{
lblPress.Text = "UnMuted!";
mMixers.Recording.Lines.GetMixerFirstLineByComponentType(MIXERLINE_COMPONENTTYPE.SRC_MICROPHONE).Volume = 65535;
}
}
protected override void OnKeyUp(KeyEventArgs keyEvent)
{
if (keyEvent.KeyCode == Keys.E)
{
mMixers.Recording.Lines.GetMixerFirstLineByComponentType(MIXERLINE_COMPONENTTYPE.SRC_MICROPHONE).Volume = 0;
lblPress.Text = "Muted!";
}
}
Edited by 2befine, 29 November 2009 - 03:33 AM.


Sign In
Create Account

Back to top









