Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }