Esempio n. 1
0
        protected override void WndProc(ref Message m)
        {
            base.WndProc(ref m);

            //HOTKEY DOWN
            if (m.Msg == Constants.WIN_MSG_HOTKEY_DOWN)
            {
                if (KL.IsListening)
                {
                    KL.StopListening();
                    this.lblIsListening.Text      = "IsListening: False";
                    this.lblIsListening.ForeColor = Color.Red;
                    this.TransmitAudio(KL.KeysPressed);
                }
                else
                {
                    KL.StartListening();
                    this.lblIsListening.Text      = "IsListening: True";
                    this.lblIsListening.ForeColor = Color.Green;
                }
            }
        }
Esempio n. 2
0
 public void Init()
 {
     keyLogger.StartListening();
 }