private void CTRL_Pressed(SystemHotkey p) { m_SelectForm.Input_TextBox.Text = ""; SystemHotkey.RegisterHotKey(false, t_key_type.NONALPHA); if (p != null) { if (!Active) { ActiveWNDsList.Add(User32.GetForegroundWindow()); } else { ActiveWNDsList.Remove(User32.GetForegroundWindow()); } } SystemHotkey.RegisterHotKey(!Active, t_key_type.ALPHA); }
private void CTRL_Pressed(SystemHotkey p) { m_SelectForm.Input_TextBox.Text = ""; SystemHotkey.RegisterHotKey(false, t_key_type.NONALPHA); if (p != null) { if (!Active) { ActiveWNDsList.Add(User32.GetForegroundWindow()); } else { ActiveWNDsList.Remove(User32.GetForegroundWindow()); } } SystemHotkey.RegisterHotKey(!Active, t_key_type.ALPHA); //if (Active) ALPHA_Pressed(null); //try { pos_thread.Abort(); } //catch { } //pos_thread = new Thread(GetCursorPosition); //pos_thread.Start(); }