protected override void WndProc(ref Message m) { if (m.Msg == WM_HOTKEY && (int)m.WParam == 1) { this.Visible = true; this.Opacity = 100; this.CenterToScreen(); this.mainWindow.SendToFront(); this.Activate(); this.searchBox.Focus(); this.searchBox.Text = ""; this.cachedWindows = windowManager.getProcesses(); showProcesses(this.cachedWindows); } if (m.Msg == WM_HOTKEY && (int)m.WParam == 2) { this.Visible = true; this.Opacity = 100; this.CenterToScreen(); this.mainWindow.SendToFront(); this.Activate(); this.searchBox.Focus(); this.searchBox.Text = ""; this.cachedWindows = windowManager.getProcesses(true); showProcesses(this.cachedWindows); } base.WndProc(ref m); }
public List <Window> match(String pattern) { return(match(pattern, windowManager.getProcesses())); }