示例#1
0
        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;
 }