Skip to content

Commit a8c29c3

Browse files
committed
增加语音和设置显示器分辨率图标
1 parent 7ced13f commit a8c29c3

9 files changed

+1126
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"RootPath":"C:\\Users\\Admin\\source\\repos\\apex_runner\\apex runner","ProjectFileName":"apex runner.csproj","Configuration":"Release|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"Form1.cs"},{"SourceFile":"Form1.Designer.cs"},{"SourceFile":"InputMethod.cs"},{"SourceFile":"Program.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"WindowsKey.cs"},{"SourceFile":"Properties\\Resources.Designer.cs"},{"SourceFile":"Properties\\Settings.Designer.cs"},{"SourceFile":"obj\\Release\\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Deployment.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\Admin\\source\\repos\\apex_runner\\apex runner\\bin\\Release\\apex runner.exe","OutputItemRelativePath":"apex runner.exe"},{"OutputItemFullPath":"C:\\Users\\Admin\\source\\repos\\apex_runner\\apex runner\\bin\\Release\\apex runner.pdb","OutputItemRelativePath":"apex runner.pdb"}],"CopyToOutputEntries":[]}

apex runner/App.config

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<setting name="uupath" serializeAs="String">
1414
<value>C:\Program Files (x86)\Netease\UU\launcher.exe</value>
1515
</setting>
16+
<setting name="oopzpath" serializeAs="String">
17+
<value>C:\Users\Admin\AppData\Local\oopz\oopz.exe</value>
18+
</setting>
1619
</apex_runner.Properties.Settings>
1720
</userSettings>
1821
</configuration>

apex runner/Form1.Designer.cs

+76-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apex runner/Form1.cs

+33
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ private void Form1_Load(object sender, EventArgs e)
3838
}
3939
//获取设置中的 uu 加速器路径
4040
textBox1.Text = Settings.Default.uupath;
41+
//获取语音软件路径
42+
textBox2.Text = Settings.Default.oopzpath;
4143

4244
}
4345

@@ -106,6 +108,12 @@ private void textBox1_TextChanged(object sender, EventArgs e)
106108
Settings.Default.uupath = textBox1.Text;
107109
Settings.Default.Save();
108110
}
111+
//textbox2 在修改时自动保存路径
112+
private void textBox2_TextChanged(object sender, EventArgs e)
113+
{
114+
Settings.Default.oopzpath = textBox2.Text;
115+
Settings.Default.Save();
116+
}
109117

110118
//右下关于按钮
111119
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
@@ -173,5 +181,30 @@ static void OpenUrl(string url)
173181
Console.WriteLine("无法打开URL:" + ex.Message);
174182
}
175183
}
184+
185+
186+
187+
188+
//开启语音软件
189+
private void pictureBox3_Click(object sender, EventArgs e)
190+
{
191+
StartProgram("C:\\Users\\Admin\\AppData\\Local\\oopz\\oopz.exe");
192+
193+
}
194+
//打开显示设置
195+
196+
private void pictureBox4_Click(object sender, EventArgs e)
197+
{
198+
try
199+
{
200+
// 打开Windows的显示设置
201+
Process.Start("ms-settings:display");
202+
Console.WriteLine("显示设置已打开。");
203+
}
204+
catch (Exception ex)
205+
{
206+
Console.WriteLine("无法打开显示设置: " + ex.Message);
207+
}
208+
}
176209
}
177210
}

0 commit comments

Comments
 (0)