Exemplo n.º 1
0
        static InputController()
        {
            ahk = new AutoHotkeyEngine();
            ahk.Reset();

            try
            {
                var sets = new Settings.Settings(); sets.Load();
                bindings = sets.Controls.AsArray();
            }
            catch (Exception)
            {
                bindings = new InputBinding[0];
            }

            Thread t = new Thread(() => Application.Run(hookWnd));

            t.SetApartmentState(ApartmentState.STA);
            t.IsBackground = true;
            t.Start();
        }