/// <summary> /// Pokes the pandora. /// </summary> /// <param name="action">The action.</param> private static void PokePandora(PandoraActions action) { if (PandoraProcess.IsRunning()) { switch (action) { case PandoraActions.PlayPause: PandoraProcess.SendKey(Keys.Space); break; case PandoraActions.Skip: PandoraProcess.SendKey(Keys.Right); break; case PandoraActions.Like: PandoraProcess.SendKey(Keys.Add); break; case PandoraActions.Dislike: PandoraProcess.SendKey(Keys.Subtract); break; case PandoraActions.RaiseVolume: PandoraProcess.SendKey(Keys.Up); break; case PandoraActions.LowerVolume: PandoraProcess.SendKey(Keys.Down); break; case PandoraActions.FullVolume: PandoraProcess.SendKey(Keys.Up, true); break; case PandoraActions.Mute: PandoraProcess.SendKey(Keys.Down, true); break; default: break; } } }