示例#1
0
        private void MenuItem_Click_SendInputストローク画像からの相対座標(object sender, RoutedEventArgs e)
        {
            try
            {
                Hide();
                if (MenuItem_挿入操作開始を遅延する.IsChecked)
                {
                    Thread.Sleep(INSERT_DELAY);
                }

                if (!ShowImageCaptureDialog(out string filepath, out Rectangle rect))
                {
                    return;
                }

                var rsw = new RecordStrokeWindow(Path.GetFileName(filepath), rect);
                if (rsw.ShowDialog() ?? false)
                {
                    InsertString(rsw.StrokeCode);
                }
            }
            finally
            {
                Show();
            }
        }
示例#2
0
        private void MenuItem_Click_SendInputストローク(object sender, RoutedEventArgs e)
        {
            var rsw = new RecordStrokeWindow();

            if (rsw.ShowDialog() ?? false)
            {
                InsertString(rsw.StrokeCode);
            }
        }