Ejemplo n.º 1
0
        private void GUIEditor_Load(object sender, EventArgs e)
        {
            //Got to call show & focus because of my awful loop
            this.Show();
            this.Focus();

            WindowEditor             = new WindowGUIEditor();
            actHook                  = new InputHook.UserActivityHook(true, true); // crate an instance with global hooks
            actHook.OnMouseActivity += new MouseEventHandler(MouseMoved);
            actHook.KeyDown         += new KeyEventHandler(GatherData);
            actHook.KeyUp           += new KeyEventHandler(GatherStop);

            //Key capturing broke, this magically fixed it
            this.KeyPreview = true;
            GrabTypeComboBox.SelectedIndex = 0;
            MessageComboBox.DataSource     = Enum.GetValues(typeof(WindowGUIEditor.CommonEvents));

            SetToolTips();
        }
Ejemplo n.º 2
0
        private void GUIEditor_Load(object sender, EventArgs e)
        {
            //Got to call show & focus because of my awful loop
            this.Show();
            this.Focus();

            WindowEditor = new WindowGUIEditor();
            actHook = new InputHook.UserActivityHook(true, true); // crate an instance with global hooks
            actHook.OnMouseActivity += new MouseEventHandler(MouseMoved);
            actHook.KeyDown += new KeyEventHandler(GatherData);
            actHook.KeyUp += new KeyEventHandler(GatherStop);

            //Key capturing broke, this magically fixed it
            this.KeyPreview = true;
            GrabTypeComboBox.SelectedIndex = 0;
            MessageComboBox.DataSource = Enum.GetValues(typeof(WindowGUIEditor.CommonEvents));

            SetToolTips();
        }