Example #1
0
        private static void ProcessSelectingWindow(int wParam)
        {
            if (wParam == SSWindowsFunctions.WM_LBUTTONDOWN)
            {
                _currentDispatcher.BeginInvoke((Action)(() =>
                {
                    ((SSBaseHookSystem)GetHookSystem()).InteractionManager.GetCommand <SSSelectedWindowProvider>()
                    .Publish(new SSPayload <bool>(true));
                }));

                _screenshotType = eScreenshotType.None;
                _oldHwnd        = IntPtr.Zero;
                _highlightWindow.Hide();
            }
            else if (wParam == SSWindowsFunctions.WM_RBUTTONDOWN)
            {
                _currentDispatcher.BeginInvoke((Action)(() =>
                {
                    ((SSBaseHookSystem)GetHookSystem()).InteractionManager.GetCommand <SSSelectedWindowProvider>()
                    .Publish(new SSPayload <bool>(false));
                }));
                _screenshotType = eScreenshotType.None;
                _oldHwnd        = IntPtr.Zero;
                _highlightWindow.Hide();
            }
        }
Example #2
0
 public void RunSelectingWindow(IntPtr mainHwnd)
 {
     _selectedWindow = IntPtr.Zero;
     _screenshotType = eScreenshotType.SelectedWindow;
 }
Example #3
0
 public void ResetCurrentAction()
 {
     _screenshotType = eScreenshotType.None;
 }
Example #4
0
 public void RunSelectingArea()
 {
     _screenshotType  = eScreenshotType.SelectedArea;
     _selectionWindow = Container.GetExportedValue <ISSSelectionWindow>();
     _selectionWindow?.Show();
 }
Example #5
0
 public void ResetCurrentAction()
 {
     _screenshotType = eScreenshotType.None;
 }
Example #6
0
 public void RunSelectingArea()
 {
     _screenshotType = eScreenshotType.SelectedArea;
     _selectionWindow = Container.GetExportedValue<ISSSelectionWindow>();
     _selectionWindow?.Show();
 }
Example #7
0
 public void RunSelectingWindow(IntPtr mainHwnd)
 {
     _selectedWindow = IntPtr.Zero;
     _screenshotType = eScreenshotType.SelectedWindow;
 }
Example #8
0
 private static void ProcessSelectingWindow(int wParam)
 {
     if (wParam == SSWindowsFunctions.WM_LBUTTONDOWN)
     {
         ((SSBaseHookSystem) GetHookSystem()).InteractionManager.GetCommand<SSSelectedWindowProvider>()
             .Publish(new SSPayload<bool>(true));
     }
     else if (wParam == SSWindowsFunctions.WM_RBUTTONDOWN)
     {
         ((SSBaseHookSystem) GetHookSystem()).InteractionManager.GetCommand<SSSelectedWindowProvider>()
             .Publish(new SSPayload<bool>(false));
         _screenshotType = eScreenshotType.None;
     }
 }