Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public List <Window> match(String pattern)
 {
     return(match(pattern, windowManager.getProcesses()));
 }