public Tuner() { InitializeComponent(); player = new Player(PandoraBrowser.Handle); locator.Enabled = true; //Setup //Start Keyboard Hook try { actHook = new UserActivityHook(); actHook.KeyDown += new KeyEventHandler(MyKeyDown); actHook.Start(); } catch (Exception) { MessageBox.Show("Error setting up media keys. They will not work. Try to restart PandoraKeys"); } }
public Tuner() { InitializeComponent(); //Create the player wrapper around the WebBrowser _player = new Player(PandoraBrowser); _webServerEnabled = Settings.Default.WebserverEnabled; StartWebServer(); //Setup //Start Keyboard Hook try { _actHook = new UserActivityHook(); _actHook.KeyDown += new KeyEventHandler(MyKeyDown); _actHook.Start(); } catch (Exception) { MessageBox.Show("Error setting up media keys. They will not work. Try to restart PandoraKeys"); } }