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; } } }
public void Init() { keyLogger.StartListening(); }