As per report from jalude55:
Changed ActionHookCallback after creating a public static Boolean called IsProcessing in the hotkey class. It would skip more than one track when skipping tracks. This seems to work a lot better for me although i'm sure this is a much better way to solve this issue.
internal static void ActionHookCallback(Hotkey hotkey)
{
if (Hotkey.IsProcessing)
return;
Hotkey.IsProcessing = true;
string currentTrack = string.Empty;
try
{
string trackBeforeAction = Spotify.GetCurrentTrack();
if (hotkey.Action == SpotifyAction.CopyTrackInfo && !string.IsNullOrEmpty(trackBeforeAction))
Clipboard.SetText(string.Format(SettingsXml.Current.ClipboardTemplate, trackBeforeAction));
else
Spotify.SendAction(hotkey.Action);
Toast.Current.DisplayAction(hotkey.Action, trackBeforeAction);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine("Exception with hooked key! " + ex);
Toast.Current.Title1.Text = "Unable to communicate with Spotify";
Toast.Current.Title2.Text = "";
Toast.Current.FadeIn();
}
System.Threading.Thread.Sleep(400);
Hotkey.IsProcessing = false;
}