コード例 #1
0
ファイル: App.xaml.cs プロジェクト: QuinnDamerell/instagif
        public App()
        {
            // keep us alive after the main window closes.
            ShutdownMode = ShutdownMode.OnExplicitShutdown;

            Clippy.Test();

            // Setup the keyboard hooker
            m_hooker = new Hooker();
            m_hooker.GlobalHotKeyInvoked += Hooker_GlobalHotKeyInvoked;

            // Kill any other processes
            Killer.KillOthers();

#if DEBUG
            OpenWindow();
#else
            // Setup to start on run.
            Starter.SetStartup();

            // Set the keyboard hook
            m_hooker.SetHook();
#endif
        }
コード例 #2
0
 public Hooker()
 {
     s_instance = this;
 }