diff --git a/.vs/CSharp/FileContentIndex/1fccb786-a49a-43e0-aadc-65006cc89360.vsidx b/.vs/CSharp/FileContentIndex/1fccb786-a49a-43e0-aadc-65006cc89360.vsidx new file mode 100644 index 0000000..0841324 Binary files /dev/null and b/.vs/CSharp/FileContentIndex/1fccb786-a49a-43e0-aadc-65006cc89360.vsidx differ diff --git a/.vs/CSharp/FileContentIndex/4aa18cd4-0c8c-4bbc-9ba1-f8068f88e69f.vsidx b/.vs/CSharp/FileContentIndex/4aa18cd4-0c8c-4bbc-9ba1-f8068f88e69f.vsidx new file mode 100644 index 0000000..ec83288 Binary files /dev/null and b/.vs/CSharp/FileContentIndex/4aa18cd4-0c8c-4bbc-9ba1-f8068f88e69f.vsidx differ diff --git a/.vs/CSharp/FileContentIndex/read.lock b/.vs/CSharp/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/.vs/CSharp/v17/.suo b/.vs/CSharp/v17/.suo new file mode 100644 index 0000000..bfaf932 Binary files /dev/null and b/.vs/CSharp/v17/.suo differ diff --git a/.vs/MB_TaskbarTidbit/FileContentIndex/dac1a649-46fc-4bcb-85fd-17d39e091683.vsidx b/.vs/MB_TaskbarTidbit/FileContentIndex/dac1a649-46fc-4bcb-85fd-17d39e091683.vsidx new file mode 100644 index 0000000..fa1f322 Binary files /dev/null and b/.vs/MB_TaskbarTidbit/FileContentIndex/dac1a649-46fc-4bcb-85fd-17d39e091683.vsidx differ diff --git a/.vs/MB_TaskbarTidbit/FileContentIndex/read.lock b/.vs/MB_TaskbarTidbit/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/.vs/MB_TaskbarTidbit/v17/.suo b/.vs/MB_TaskbarTidbit/v17/.suo new file mode 100644 index 0000000..6d3cea4 Binary files /dev/null and b/.vs/MB_TaskbarTidbit/v17/.suo differ diff --git a/.vs/ProjectSettings.json b/.vs/ProjectSettings.json new file mode 100644 index 0000000..f8b4888 --- /dev/null +++ b/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": null +} \ No newline at end of file diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..644e118 --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,7 @@ +{ + "ExpandedNodes": [ + "" + ], + "SelectedNode": "\\CSharp.sln", + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000..aa7476e Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/CSharpDll.csproj b/CSharpDll.csproj index a5eb540..9ab9cdc 100644 --- a/CSharpDll.csproj +++ b/CSharpDll.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,7 +10,7 @@ Properties MusicBeePlugin mb_TaskbarTidbit - v4.0 + v4.8 512 @@ -31,6 +31,7 @@ false false true + true @@ -40,6 +41,7 @@ DEBUG;TRACE prompt 4 + false none @@ -49,6 +51,7 @@ prompt 4 false + false true @@ -59,6 +62,7 @@ prompt true true + false bin\x86\Release\ @@ -69,6 +73,7 @@ prompt false false + false OnBuildSuccess diff --git a/TaskbarTidbit.cs b/TaskbarTidbit.cs index 1af98b5..596bc7d 100644 --- a/TaskbarTidbit.cs +++ b/TaskbarTidbit.cs @@ -94,13 +94,27 @@ public void ReceiveNotification(string sourceFileUrl, NotificationType type) string artist = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Artist); break; + case NotificationType.PlayStateChanged: + switch (mbApiInterface.Player_GetPlayState()) + { + case PlayState.Playing: + TaskbarProgress.SetState(mbApiInterface.MB_GetWindowHandle(), TaskbarProgress.TaskbarStates.Normal); + break; + case PlayState.Paused: + TaskbarProgress.SetState(mbApiInterface.MB_GetWindowHandle(), TaskbarProgress.TaskbarStates.Paused); + break; + default: + TaskbarProgress.SetState(mbApiInterface.MB_GetWindowHandle(), TaskbarProgress.TaskbarStates.NoProgress); + break; + } + break; } } private void initTimer() { - timer = new System.Timers.Timer(); + timer = new System.Timers.Timer(); timer.Interval = 100; timer.Elapsed += new ElapsedEventHandler(onTime); timer.Enabled = true; diff --git a/bin/Debug/mb_TaskbarTidbit.dll b/bin/Debug/mb_TaskbarTidbit.dll new file mode 100644 index 0000000..bd648f5 Binary files /dev/null and b/bin/Debug/mb_TaskbarTidbit.dll differ diff --git a/bin/Debug/mb_TaskbarTidbit.pdb b/bin/Debug/mb_TaskbarTidbit.pdb new file mode 100644 index 0000000..48db435 Binary files /dev/null and b/bin/Debug/mb_TaskbarTidbit.pdb differ diff --git a/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/obj/Debug/CSharpDll.csproj.AssemblyReference.cache b/obj/Debug/CSharpDll.csproj.AssemblyReference.cache new file mode 100644 index 0000000..14f16b5 Binary files /dev/null and b/obj/Debug/CSharpDll.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/CSharpDll.csproj.CoreCompileInputs.cache b/obj/Debug/CSharpDll.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..e2bd660 --- /dev/null +++ b/obj/Debug/CSharpDll.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +d573226f1cc63073ee50f46d76f67ec654e30f0e diff --git a/obj/Debug/CSharpDll.csproj.FileListAbsolute.txt b/obj/Debug/CSharpDll.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..88fc7e7 --- /dev/null +++ b/obj/Debug/CSharpDll.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\Users\Leo\source\repos\MB_TaskbarTidbit\bin\Debug\mb_TaskbarTidbit.dll +C:\Users\Leo\source\repos\MB_TaskbarTidbit\bin\Debug\mb_TaskbarTidbit.pdb +C:\Users\Leo\source\repos\MB_TaskbarTidbit\obj\Debug\CSharpDll.csproj.AssemblyReference.cache +C:\Users\Leo\source\repos\MB_TaskbarTidbit\obj\Debug\CSharpDll.csproj.CoreCompileInputs.cache +C:\Users\Leo\source\repos\MB_TaskbarTidbit\obj\Debug\mb_TaskbarTidbit.dll +C:\Users\Leo\source\repos\MB_TaskbarTidbit\obj\Debug\mb_TaskbarTidbit.pdb diff --git a/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..7272ff2 Binary files /dev/null and b/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/obj/Debug/_IsIncrementalBuild b/obj/Debug/_IsIncrementalBuild new file mode 100644 index 0000000..e5f828c --- /dev/null +++ b/obj/Debug/_IsIncrementalBuild @@ -0,0 +1 @@ +obj\Debug\\_IsIncrementalBuild diff --git a/obj/Debug/mb_TaskbarTidbit.dll b/obj/Debug/mb_TaskbarTidbit.dll new file mode 100644 index 0000000..bd648f5 Binary files /dev/null and b/obj/Debug/mb_TaskbarTidbit.dll differ diff --git a/obj/Debug/mb_TaskbarTidbit.pdb b/obj/Debug/mb_TaskbarTidbit.pdb new file mode 100644 index 0000000..48db435 Binary files /dev/null and b/obj/Debug/mb_TaskbarTidbit.pdb differ diff --git a/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/obj/Release/CSharpDll.csproj.AssemblyReference.cache b/obj/Release/CSharpDll.csproj.AssemblyReference.cache new file mode 100644 index 0000000..14f16b5 Binary files /dev/null and b/obj/Release/CSharpDll.csproj.AssemblyReference.cache differ diff --git a/obj/x86/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/obj/x86/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/obj/x86/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/obj/x86/Debug/CSharpDll.csproj.AssemblyReference.cache b/obj/x86/Debug/CSharpDll.csproj.AssemblyReference.cache new file mode 100644 index 0000000..14f16b5 Binary files /dev/null and b/obj/x86/Debug/CSharpDll.csproj.AssemblyReference.cache differ diff --git a/obj/x86/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/obj/x86/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/obj/x86/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/obj/x86/Release/CSharpDll.csproj.AssemblyReference.cache b/obj/x86/Release/CSharpDll.csproj.AssemblyReference.cache new file mode 100644 index 0000000..14f16b5 Binary files /dev/null and b/obj/x86/Release/CSharpDll.csproj.AssemblyReference.cache differ