private void OnHotKeyPressed() { string curentWindow = GetActiveWindowTitle(); MyProcess p = new MyProcess(curentWindow); if (curentWindow != null && Etiquette.BibProcess.getProcessByWindow(curentWindow) == null && p.existProcess() && getPathFromProcess(p) != null) { MyLabel l = new MyLabel(curentWindow, getPathFromProcess(p)); l.Show(); } }