示例#1
0
        public override void Initialize()
        {
            try
            {
                MySettings = new HBToggleSettings(Application.StartupPath + "\\Settings\\HBToggle\\HB_Toggle.xml");
                HBToggleKeybind.KeyBind = MySettings.HBKeybind;
                MovementKeybind.KeyBind = MySettings.MovementKeybind;

                _keyPollThread = new Thread(ThreadLoop)
                {
                    IsBackground = true
                };
                Logging.Write("Starting Thread: keyPollThread");
                _keyPollThread.Start();
            }
            catch (Exception ex)
            {
                Logging.WriteException(ex);
            }
        }
示例#2
0
        public override void Initialize()
        {
            try
            {
                MySettings = new HBToggleSettings(Application.StartupPath + "\\Settings\\HBToggle\\HB_Toggle.xml");
                HBToggleKeybind.KeyBind = MySettings.HBKeybind;
                MovementKeybind.KeyBind = MySettings.MovementKeybind;

                _keyPollThread = new Thread(ThreadLoop)
                                 {
                                     IsBackground = true
                                 };
                Logging.Write("Starting Thread: keyPollThread");
                _keyPollThread.Start();
            }
            catch (Exception ex)
            {
                Logging.WriteException(ex);
            }
        }