Beispiel #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            GlobalHook.SetHook();

            GlobalHook.KeyUp += GlobalHook_KeyUp;

            // Create the startup window
            mw   = new MW();
            mw.X = new MainWindow();
            mw.X.Show();// Show the window
        }
Beispiel #2
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     GlobalHook.UnHook();
 }