private void HideAltMenusInPhotoshop(Keys key) { if (key != Keys.LMenu || altDebounce) { return; } photoshopHandle = WindowHandler.FindWindow(PhotoshopWndClassName, null); if (WindowHandler.IsWindowInFocus(photoshopHandle)) { altDebounce = true; SendKeys.SendWait("^%"); altDebounce = false; } }
private void FocusOnPhotoshop() { photoshopHandle = WindowHandler.FindWindow(PhotoshopWndClassName, null); WindowHandler.SetForegroundWindow(photoshopHandle); }