Esempio n. 1
0
        protected override void WndProc(ref Message m)
        {
            //STRG + C =  llparam=0x430003
            //STRG + D =  lparam=0x440003
            if (m.Msg == WmHotkeyMsgID && ThreadHelper.CaptureIsOn == false)
            {
                if (m.LParam == (IntPtr) 0x440003)
                {
                    ThreadHelper.PressedKey = 0x440003;
                    ThreadHelper.CaptureIsOn = true;
                    var mySelection = new Square();
                    mySelection.ShowDialog();

                    ThreadHelper.CaptureIsOn = false;
                }
                else if (m.LParam == (IntPtr) 0x430003)
                {
                    ThreadHelper.PressedKey = 0x430003;
                    ThreadHelper.CaptureIsOn = true;
                    var mySelection = new Square();
                    mySelection.ShowDialog();
                    ThreadHelper.CaptureIsOn = false;
                }
            }
            base.WndProc(ref m);
        }
Esempio n. 2
0
        private void ShowInfoBox()
        {
            if (_info != null && InfoStarted == false && _info.Started == false)
            {
                InfoStarted = true;
                _info.ShowDialog();

                if (_info != null && _info.Action == Infoform.InfoBoxAction.Capture2Clipboard)
                {
                    var mySelection = new Square();
                    mySelection.ShowDialog();
                }
            }
        }
Esempio n. 3
0
        protected override void WndProc(ref Message m)
        {
            //STRG + C =  llparam=0x430003
            //STRG + D =  lparam=0x440003
            if (m.Msg == WmHotkeyMsgID && ThreadHelper.CaptureIsOn == false)
            {
                if (m.LParam == (IntPtr) 0x440003)
                {
                    ThreadHelper.PressedKey = 0x440003;
                    ThreadHelper.CaptureIsOn = true;
                    var mySelection = new Square();
                    mySelection.ShowDialog();

                    ThreadHelper.CaptureIsOn = false;
                }
                else if (m.LParam == (IntPtr) 0x430003)
                {
                    ThreadHelper.PressedKey = 0x430003;
                    ThreadHelper.CaptureIsOn = true;
                    var mySelection = new Square();
                    mySelection.ShowDialog();
                    ThreadHelper.CaptureIsOn = false;
                }
            }
            base.WndProc(ref m);
        }
Esempio n. 4
0
        private void ShowInfoBox()
        {
            if (_info != null && InfoStarted == false && _info.Started == false)
            {
                InfoStarted = true;
                _info.ShowDialog();

                if (_info != null && _info.Action == Infoform.InfoBoxAction.Capture2Clipboard)
                {
                    var mySelection = new Square();
                    mySelection.ShowDialog();
                }
            }
        }