public KeyboardSeqWindow()
 {
     Log.FunctionIndent("KeyboardSeqWindow", "KeyboardSeqWindow");
     try
     {
         InitializeComponent();
         EventManager.RegisterClassHandler(typeof(Window), Window.LoadedEvent, new RoutedEventHandler(Window_Loaded));
         this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         DataContext = this;
         Activate();
         Focus();
         Topmost = true;
         Topmost = false;
         Focus();
         textbox.Focus();
         Topmost  = true;
         typeText = new Activities.TypeText();
         InputDriver.Instance.OnKeyDown += OnKeyDown;
         InputDriver.Instance.OnKeyUp   += OnKeyUp;
         InputDriver.Instance.CallNext   = false;
     }
     catch (Exception ex)
     {
         Log.Error(ex.ToString());
     }
     Log.FunctionOutdent("KeyboardSeqWindow", "KeyboardSeqWindow");
 }
示例#2
0
 public KeyboardSeqWindow()
 {
     InitializeComponent();
     EventManager.RegisterClassHandler(typeof(Window), Window.LoadedEvent, new RoutedEventHandler(Window_Loaded));
     this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     DataContext = this;
     Activate();
     Focus();
     Topmost = true;
     Topmost = false;
     Focus();
     textbox.Focus();
     Topmost  = true;
     typeText = new Activities.TypeText();
 }