private void CaptureWindow() { // mouse hook and such WindowButtonText = "Click a Window.."; mHook = new MouseKeyHook(); MouseKeyHook.SetAction(mouseAction); }