Jump to content

WaveLib + Binding

- - - - -

  • Please log in to reply
No replies to this topic

#1
2befine

2befine

    Newbie

  • Members
  • Pip
  • 1 posts
Hi all.
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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users