├── .gitignore ├── CortanaMusicUpdate ├── App.config ├── CortanaMusicUpdate.csproj ├── Program.cs └── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── LICENSE ├── LockScreenText ├── App.xaml ├── App.xaml.cs ├── Assets │ ├── BadgeLogo.scale-100.png │ ├── BadgeLogo.scale-125.png │ ├── BadgeLogo.scale-150.png │ ├── BadgeLogo.scale-200.png │ ├── BadgeLogo.scale-400.png │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png ├── LockScreenText.csproj ├── MainPage.xaml ├── MainPage.xaml.cs ├── Package.appxmanifest ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml ├── Release.zip └── project.json ├── MediaCtrl ├── AboutBox.Designer.cs ├── AboutBox.cs ├── AboutBox.resx ├── App.config ├── MediaCtrl.csproj ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Resources │ └── Music.ico ├── help.txt ├── install.vbs └── packages.config ├── README.md ├── Release.zip ├── ResDll ├── ReadMe.txt ├── ResDll.cpp ├── ResDll.rc ├── ResDll.vcxproj ├── ResDll.vcxproj.filters ├── dllmain.cpp ├── resource.h ├── stdafx.cpp ├── stdafx.h └── targetver.h └── Rhythm_Tools.sln /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # MSTest test Results 33 | [Tt]est[Rr]esult*/ 34 | [Bb]uild[Ll]og.* 35 | 36 | # NUNIT 37 | *.VisualState.xml 38 | TestResult.xml 39 | 40 | # Build Results of an ATL Project 41 | [Dd]ebugPS/ 42 | [Rr]eleasePS/ 43 | dlldata.c 44 | 45 | # .NET Core 46 | project.lock.json 47 | project.fragment.lock.json 48 | artifacts/ 49 | **/Properties/launchSettings.json 50 | 51 | *_i.c 52 | *_p.c 53 | *_i.h 54 | *.ilk 55 | *.meta 56 | *.obj 57 | *.pch 58 | *.pdb 59 | *.pgc 60 | *.pgd 61 | *.rsp 62 | *.sbr 63 | *.tlb 64 | *.tli 65 | *.tlh 66 | *.tmp 67 | *.tmp_proj 68 | *.log 69 | *.vspscc 70 | *.vssscc 71 | .builds 72 | *.pidb 73 | *.svclog 74 | *.scc 75 | 76 | # Chutzpah Test files 77 | _Chutzpah* 78 | 79 | # Visual C++ cache files 80 | ipch/ 81 | *.aps 82 | *.ncb 83 | *.opendb 84 | *.opensdf 85 | *.sdf 86 | *.cachefile 87 | *.VC.db 88 | *.VC.VC.opendb 89 | 90 | # Visual Studio profiler 91 | *.psess 92 | *.vsp 93 | *.vspx 94 | *.sap 95 | 96 | # TFS 2012 Local Workspace 97 | $tf/ 98 | 99 | # Guidance Automation Toolkit 100 | *.gpState 101 | 102 | # ReSharper is a .NET coding add-in 103 | _ReSharper*/ 104 | *.[Rr]e[Ss]harper 105 | *.DotSettings.user 106 | 107 | # JustCode is a .NET coding add-in 108 | .JustCode 109 | 110 | # TeamCity is a build add-in 111 | _TeamCity* 112 | 113 | # DotCover is a Code Coverage Tool 114 | *.dotCover 115 | 116 | # Visual Studio code coverage results 117 | *.coverage 118 | *.coveragexml 119 | 120 | # NCrunch 121 | _NCrunch_* 122 | .*crunch*.local.xml 123 | nCrunchTemp_* 124 | 125 | # MightyMoose 126 | *.mm.* 127 | AutoTest.Net/ 128 | 129 | # Web workbench (sass) 130 | .sass-cache/ 131 | 132 | # Installshield output folder 133 | [Ee]xpress/ 134 | 135 | # DocProject is a documentation generator add-in 136 | DocProject/buildhelp/ 137 | DocProject/Help/*.HxT 138 | DocProject/Help/*.HxC 139 | DocProject/Help/*.hhc 140 | DocProject/Help/*.hhk 141 | DocProject/Help/*.hhp 142 | DocProject/Help/Html2 143 | DocProject/Help/html 144 | 145 | # Click-Once directory 146 | publish/ 147 | 148 | # Publish Web Output 149 | *.[Pp]ublish.xml 150 | *.azurePubxml 151 | # TODO: Comment the next line if you want to checkin your web deploy settings 152 | # but database connection strings (with potential passwords) will be unencrypted 153 | *.pubxml 154 | *.publishproj 155 | 156 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 157 | # checkin your Azure Web App publish settings, but sensitive information contained 158 | # in these scripts will be unencrypted 159 | PublishScripts/ 160 | 161 | # NuGet Packages 162 | *.nupkg 163 | # The packages folder can be ignored because of Package Restore 164 | **/packages/* 165 | # except build/, which is used as an MSBuild target. 166 | !**/packages/build/ 167 | # Uncomment if necessary however generally it will be regenerated when needed 168 | #!**/packages/repositories.config 169 | # NuGet v3's project.json files produces more ignorable files 170 | *.nuget.props 171 | *.nuget.targets 172 | 173 | # Microsoft Azure Build Output 174 | csx/ 175 | *.build.csdef 176 | 177 | # Microsoft Azure Emulator 178 | ecf/ 179 | rcf/ 180 | 181 | # Windows Store app package directories and files 182 | AppPackages/ 183 | BundleArtifacts/ 184 | Package.StoreAssociation.xml 185 | _pkginfo.txt 186 | 187 | # Visual Studio cache files 188 | # files ending in .cache can be ignored 189 | *.[Cc]ache 190 | # but keep track of directories ending in .cache 191 | !*.[Cc]ache/ 192 | 193 | # Others 194 | ClientBin/ 195 | ~$* 196 | *~ 197 | *.dbmdl 198 | *.dbproj.schemaview 199 | *.jfm 200 | *.pfx 201 | *.publishsettings 202 | orleans.codegen.cs 203 | 204 | # Since there are multiple workflows, uncomment next line to ignore bower_components 205 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 206 | #bower_components/ 207 | 208 | # RIA/Silverlight projects 209 | Generated_Code/ 210 | 211 | # Backup & report files from converting an old project file 212 | # to a newer Visual Studio version. Backup files are not needed, 213 | # because we have git ;-) 214 | _UpgradeReport_Files/ 215 | Backup*/ 216 | UpgradeLog*.XML 217 | UpgradeLog*.htm 218 | 219 | # SQL Server files 220 | *.mdf 221 | *.ldf 222 | *.ndf 223 | 224 | # Business Intelligence projects 225 | *.rdl.data 226 | *.bim.layout 227 | *.bim_*.settings 228 | 229 | # Microsoft Fakes 230 | FakesAssemblies/ 231 | 232 | # GhostDoc plugin setting file 233 | *.GhostDoc.xml 234 | 235 | # Node.js Tools for Visual Studio 236 | .ntvs_analysis.dat 237 | node_modules/ 238 | 239 | # Typescript v1 declaration files 240 | typings/ 241 | 242 | # Visual Studio 6 build log 243 | *.plg 244 | 245 | # Visual Studio 6 workspace options file 246 | *.opt 247 | 248 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 249 | *.vbw 250 | 251 | # Visual Studio LightSwitch build output 252 | **/*.HTMLClient/GeneratedArtifacts 253 | **/*.DesktopClient/GeneratedArtifacts 254 | **/*.DesktopClient/ModelManifest.xml 255 | **/*.Server/GeneratedArtifacts 256 | **/*.Server/ModelManifest.xml 257 | _Pvt_Extensions 258 | 259 | # Paket dependency manager 260 | .paket/paket.exe 261 | paket-files/ 262 | 263 | # FAKE - F# Make 264 | .fake/ 265 | 266 | # JetBrains Rider 267 | .idea/ 268 | *.sln.iml 269 | 270 | # CodeRush 271 | .cr/ 272 | 273 | # Python Tools for Visual Studio (PTVS) 274 | __pycache__/ 275 | *.pyc 276 | 277 | # Cake - Uncomment if you are using it 278 | # tools/** 279 | # !tools/packages.config 280 | 281 | # Telerik's JustMock configuration file 282 | *.jmconfig 283 | 284 | # BizTalk build output 285 | *.btp.cs 286 | *.btm.cs 287 | *.odx.cs 288 | *.xsd.cs 289 | -------------------------------------------------------------------------------- /CortanaMusicUpdate/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /CortanaMusicUpdate/CortanaMusicUpdate.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {4C159CF1-DEEA-4BC2-9E7B-62AFF98608BF} 8 | WinExe 9 | CortanaMusicUpdate 10 | CortanaMusicUpdate 11 | v4.5.2 12 | 512 13 | true 14 | publish\ 15 | true 16 | Disk 17 | false 18 | Foreground 19 | 7 20 | Days 21 | false 22 | false 23 | true 24 | 0 25 | 1.0.0.%2a 26 | false 27 | false 28 | true 29 | 30 | 31 | AnyCPU 32 | true 33 | full 34 | false 35 | bin\Debug\ 36 | DEBUG;TRACE 37 | prompt 38 | 4 39 | 40 | 41 | AnyCPU 42 | pdbonly 43 | true 44 | bin\Release\ 45 | TRACE 46 | prompt 47 | 4 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | ResXFileCodeGenerator 67 | Resources.Designer.cs 68 | Designer 69 | 70 | 71 | True 72 | Resources.resx 73 | 74 | 75 | SettingsSingleFileGenerator 76 | Settings.Designer.cs 77 | 78 | 79 | True 80 | Settings.settings 81 | True 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | False 90 | Microsoft .NET Framework 4.5.2 %28x86 和 x64%29 91 | true 92 | 93 | 94 | False 95 | .NET Framework 3.5 SP1 96 | false 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /CortanaMusicUpdate/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Runtime.InteropServices; 4 | using System.Text; 5 | using System.Windows.Forms; 6 | 7 | namespace CortanaMusicUpdate 8 | { 9 | static class Program 10 | { 11 | [DllImport("user32.dll")] 12 | private extern static bool SetCursorPos(int X, int Y); 13 | [DllImport("user32.dll")] 14 | private extern static void mouse_event(MouseEventFlag flags, int dx, int dy, uint data, UIntPtr extraInfo); 15 | [DllImport("user32.dll", EntryPoint = "FindWindow")] 16 | private extern static IntPtr FindWindow(string lpClassName, string lpWindowName); 17 | [DllImport("user32.dll", EntryPoint = "FindWindowExA")] 18 | private extern static IntPtr FindWindowExA(IntPtr hWndParent, IntPtr hWndChildAfter, string lpszClass, string lpszWindow); 19 | [DllImport("user32.dll", CharSet = CharSet.Auto)] 20 | public static extern int SendMessage(IntPtr hWnd, int msg, int wParam, int lParam); 21 | [DllImport("user32.dll", CharSet = CharSet.Auto)] 22 | public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam); 23 | [DllImport("user32.dll", CharSet = CharSet.Auto)] 24 | public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, string lParam); 25 | [DllImport("user32.dll")] 26 | public static extern int GetWindowTextLength(IntPtr hWnd); 27 | [DllImport("User32.dll", CharSet = CharSet.Auto)] 28 | public static extern int GetWindowText(IntPtr hWnd, StringBuilder text, int nMaxCount); 29 | [Flags] 30 | enum MouseEventFlag : uint //设置鼠标动作的键值 31 | { 32 | Move = 0x0001, //发生移动 33 | LeftDown = 0x0002, //鼠标按下左键 34 | LeftUp = 0x0004, //鼠标松开左键 35 | RightDown = 0x0008, //鼠标按下右键 36 | RightUp = 0x0010, //鼠标松开右键 37 | MiddleDown = 0x0020, //鼠标按下中键 38 | MiddleUp = 0x0040, //鼠标松开中键 39 | XDown = 0x0080, 40 | XUp = 0x0100, 41 | Wheel = 0x0800, //鼠标轮被移动 42 | VirtualDesk = 0x4000, //虚拟桌面 43 | Absolute = 0x8000 44 | } 45 | 46 | static Timer timer = new Timer(); 47 | /// 48 | /// 应用程序的主入口点。 49 | /// 50 | [STAThread] 51 | static void Main() 52 | { 53 | Application.EnableVisualStyles(); 54 | Application.SetCompatibleTextRenderingDefault(false); 55 | var process=System.Diagnostics.Process.GetProcessesByName("CortanaMusicUpdate"); 56 | if(process.Length>=2) 57 | { 58 | MessageBox.Show("CortanaMusicUpdate已经运行"); 59 | return;//防止进程重复 60 | } 61 | timer.Interval = 2000; 62 | timer.Tick += Timer_Tick; 63 | timer.Start(); 64 | Application.Run(); 65 | } 66 | 67 | //定时(2s)检测更新 68 | private static void Timer_Tick(object sender, EventArgs e) 69 | { 70 | try 71 | { 72 | var cloudmusic = Process.GetProcessesByName("cloudmusic"); 73 | var qqmusic = Process.GetProcessesByName("QQMusic"); 74 | if (cloudmusic.Length == 0&& qqmusic.Length==0) 75 | { 76 | if(GetCortanaText()!="请在这里输入你要搜索的内容") 77 | { 78 | int oldx, oldy; 79 | SetText("请在这里输入你要搜索的内容"); 80 | oldx = Control.MousePosition.X; 81 | oldy = Control.MousePosition.Y; 82 | SetCursorPos(187, 1063); 83 | mouse_event(MouseEventFlag.Move, 0, 0, 0, UIntPtr.Zero); 84 | SetCursorPos(oldx, oldy); 85 | } 86 | return; 87 | } 88 | if(cloudmusic.Length>0) 89 | { 90 | if (GetCortanaText() != GetMusicText()) 91 | { 92 | int oldx, oldy; 93 | SetText(GetMusicText()); 94 | oldx = Control.MousePosition.X; 95 | oldy = Control.MousePosition.Y; 96 | SetCursorPos(187, 1063); 97 | mouse_event(MouseEventFlag.Move, 0, 0, 0, UIntPtr.Zero); 98 | SetCursorPos(oldx, oldy); 99 | } 100 | } 101 | else if (qqmusic.Length > 0) 102 | { 103 | if (GetCortanaText() != GetQQMusicText()) 104 | { 105 | int oldx, oldy; 106 | SetText(GetQQMusicText()); 107 | oldx = Control.MousePosition.X; 108 | oldy = Control.MousePosition.Y; 109 | SetCursorPos(187, 1063); 110 | mouse_event(MouseEventFlag.Move, 0, 0, 0, UIntPtr.Zero); 111 | SetCursorPos(oldx, oldy); 112 | } 113 | } 114 | } 115 | catch (Exception) 116 | { 117 | 118 | } 119 | } 120 | 121 | //获取曲名-网易云音乐 122 | static string GetMusicText() 123 | { 124 | var musicbox = FindWindow("OrpheusBrowserHost", null); 125 | int musiclen = GetWindowTextLength(musicbox); 126 | StringBuilder windowName = new StringBuilder(musiclen + 1); 127 | GetWindowText(musicbox, windowName, windowName.Capacity); 128 | return windowName.ToString(); 129 | } 130 | 131 | //获取曲名-QQ音乐 132 | static string GetQQMusicText() 133 | { 134 | var musicbox = FindWindow("QQMusic_Daemon_Wnd", null); 135 | int musiclen = GetWindowTextLength(musicbox); 136 | StringBuilder windowName = new StringBuilder(musiclen + 1); 137 | GetWindowText(musicbox, windowName, windowName.Capacity); 138 | return windowName.ToString(); 139 | } 140 | 141 | 142 | //获取Cortana文本框文本 143 | static string GetCortanaText() 144 | { 145 | var taskbar = FindWindow("Shell_TrayWnd", null); 146 | if (taskbar == null) return ""; 147 | var cortana = FindWindowExA(taskbar, IntPtr.Zero, "TrayDummySearchControl", null); 148 | if (cortana == null) return ""; 149 | var cortext = FindWindowExA(cortana, IntPtr.Zero, "Static", null); 150 | var length = SendMessage(cortext, 0x000E, 0, 0); 151 | StringBuilder windowName = new StringBuilder(length + 1); 152 | GetWindowText(cortext, windowName, windowName.Capacity); 153 | return windowName.ToString(); 154 | } 155 | 156 | //设置Cortana文本框文本 157 | static void SetText(string text) 158 | { 159 | if (text.Length == 0) return; 160 | var taskbar = FindWindow("Shell_TrayWnd", null); 161 | if (taskbar == null) return; 162 | var cortana = FindWindowExA(taskbar, IntPtr.Zero, "TrayDummySearchControl", null); 163 | if (cortana == null) return; 164 | var cortext = FindWindowExA(cortana, IntPtr.Zero, "Static", null); 165 | var length = SendMessage(cortext, 0x000E, 0, 0); 166 | SendMessage(cortext, 0x000C, 0, text); 167 | SendMessage(cortext, 0x00F5, 0, text); 168 | } 169 | } 170 | } 171 | -------------------------------------------------------------------------------- /CortanaMusicUpdate/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("CortanaMusicUpdate")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("CortanaMusicUpdate")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("4c159cf1-deea-4bc2-9e7b-62aff98608bf")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | // 方法是按如下所示使用“*”: : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CortanaMusicUpdate/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本: 4.0.30319.42000 5 | // 6 | // 对此文件的更改可能导致不正确的行为,如果 7 | // 重新生成代码,则所做更改将丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace CortanaMusicUpdate.Properties 12 | { 13 | 14 | 15 | /// 16 | /// 强类型资源类,用于查找本地化字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// 返回此类使用的缓存 ResourceManager 实例。 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CortanaMusicUpdate.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// 覆盖当前线程的 CurrentUICulture 属性 56 | /// 使用此强类型的资源类的资源查找。 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /CortanaMusicUpdate/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /CortanaMusicUpdate/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace CortanaMusicUpdate.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /CortanaMusicUpdate/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 zuozishi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LockScreenText/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /LockScreenText/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.InteropServices.WindowsRuntime; 6 | using Windows.ApplicationModel; 7 | using Windows.ApplicationModel.Activation; 8 | using Windows.Foundation; 9 | using Windows.Foundation.Collections; 10 | using Windows.UI.Xaml; 11 | using Windows.UI.Xaml.Controls; 12 | using Windows.UI.Xaml.Controls.Primitives; 13 | using Windows.UI.Xaml.Data; 14 | using Windows.UI.Xaml.Input; 15 | using Windows.UI.Xaml.Media; 16 | using Windows.UI.Xaml.Navigation; 17 | 18 | namespace LockScreenText 19 | { 20 | /// 21 | /// 提供特定于应用程序的行为,以补充默认的应用程序类。 22 | /// 23 | sealed partial class App : Application 24 | { 25 | /// 26 | /// 初始化单一实例应用程序对象。这是执行的创作代码的第一行, 27 | /// 已执行,逻辑上等同于 main() 或 WinMain()。 28 | /// 29 | public App() 30 | { 31 | this.InitializeComponent(); 32 | this.Suspending += OnSuspending; 33 | } 34 | 35 | /// 36 | /// 在应用程序由最终用户正常启动时进行调用。 37 | /// 将在启动应用程序以打开特定文件等情况下使用。 38 | /// 39 | /// 有关启动请求和过程的详细信息。 40 | protected override void OnLaunched(LaunchActivatedEventArgs e) 41 | { 42 | Frame rootFrame = Window.Current.Content as Frame; 43 | 44 | // 不要在窗口已包含内容时重复应用程序初始化, 45 | // 只需确保窗口处于活动状态 46 | if (rootFrame == null) 47 | { 48 | // 创建要充当导航上下文的框架,并导航到第一页 49 | rootFrame = new Frame(); 50 | 51 | rootFrame.NavigationFailed += OnNavigationFailed; 52 | 53 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) 54 | { 55 | //TODO: 从之前挂起的应用程序加载状态 56 | } 57 | 58 | // 将框架放在当前窗口中 59 | Window.Current.Content = rootFrame; 60 | } 61 | 62 | if (e.PrelaunchActivated == false) 63 | { 64 | if (rootFrame.Content == null) 65 | { 66 | // 当导航堆栈尚未还原时,导航到第一页, 67 | // 并通过将所需信息作为导航参数传入来配置 68 | // 参数 69 | rootFrame.Navigate(typeof(MainPage), e.Arguments); 70 | } 71 | // 确保当前窗口处于活动状态 72 | Window.Current.Activate(); 73 | } 74 | } 75 | 76 | /// 77 | /// 导航到特定页失败时调用 78 | /// 79 | ///导航失败的框架 80 | ///有关导航失败的详细信息 81 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e) 82 | { 83 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName); 84 | } 85 | 86 | /// 87 | /// 在将要挂起应用程序执行时调用。 在不知道应用程序 88 | /// 无需知道应用程序会被终止还是会恢复, 89 | /// 并让内存内容保持不变。 90 | /// 91 | /// 挂起的请求的源。 92 | /// 有关挂起请求的详细信息。 93 | private void OnSuspending(object sender, SuspendingEventArgs e) 94 | { 95 | var deferral = e.SuspendingOperation.GetDeferral(); 96 | //TODO: 保存应用程序状态并停止任何后台活动 97 | deferral.Complete(); 98 | } 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /LockScreenText/Assets/BadgeLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/BadgeLogo.scale-100.png -------------------------------------------------------------------------------- /LockScreenText/Assets/BadgeLogo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/BadgeLogo.scale-125.png -------------------------------------------------------------------------------- /LockScreenText/Assets/BadgeLogo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/BadgeLogo.scale-150.png -------------------------------------------------------------------------------- /LockScreenText/Assets/BadgeLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/BadgeLogo.scale-200.png -------------------------------------------------------------------------------- /LockScreenText/Assets/BadgeLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/BadgeLogo.scale-400.png -------------------------------------------------------------------------------- /LockScreenText/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /LockScreenText/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /LockScreenText/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /LockScreenText/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /LockScreenText/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /LockScreenText/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/StoreLogo.png -------------------------------------------------------------------------------- /LockScreenText/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zuozishi/SMTC_On_Taskbar/9c33bc299b7573809325fd1b0035a76107c319bc/LockScreenText/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /LockScreenText/LockScreenText.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | x86 7 | {3728BAAB-559D-4D43-BD28-D56AF5D0B7B6} 8 | AppContainerExe 9 | Properties 10 | LockScreenText 11 | LockScreenText 12 | zh-CN 13 | UAP 14 | 10.0.14393.0 15 | 10.0.10586.0 16 | 14 17 | 512 18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 19 | true 20 | LockScreenText_TemporaryKey.pfx 21 | True 22 | False 23 | Always 24 | x86|x64|arm 25 | 26 | 27 | true 28 | bin\x86\Debug\ 29 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 30 | ;2008 31 | full 32 | x86 33 | false 34 | prompt 35 | true 36 | 37 | 38 | bin\x86\Release\ 39 | TRACE;NETFX_CORE;WINDOWS_UWP 40 | true 41 | ;2008 42 | pdbonly 43 | x86 44 | false 45 | prompt 46 | true 47 | true 48 | 49 | 50 | true 51 | bin\ARM\Debug\ 52 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 53 | ;2008 54 | full 55 | ARM 56 | false 57 | prompt 58 | true 59 | 60 | 61 | bin\ARM\Release\ 62 | TRACE;NETFX_CORE;WINDOWS_UWP 63 | true 64 | ;2008 65 | pdbonly 66 | ARM 67 | false 68 | prompt 69 | true 70 | true 71 | 72 | 73 | true 74 | bin\x64\Debug\ 75 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 76 | ;2008 77 | full 78 | x64 79 | false 80 | prompt 81 | true 82 | 83 | 84 | bin\x64\Release\ 85 | TRACE;NETFX_CORE;WINDOWS_UWP 86 | true 87 | ;2008 88 | pdbonly 89 | x64 90 | false 91 | prompt 92 | true 93 | true 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | App.xaml 102 | 103 | 104 | MainPage.xaml 105 | 106 | 107 | 108 | 109 | 110 | Designer 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | MSBuild:Compile 132 | Designer 133 | 134 | 135 | MSBuild:Compile 136 | Designer 137 | 138 | 139 | 140 | 14.0 141 | 142 | 143 | 150 | -------------------------------------------------------------------------------- /LockScreenText/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | 15 |