Skip to content

Commit

Permalink
v1.5 update
Browse files Browse the repository at this point in the history
  • Loading branch information
GMYXDS committed Nov 13, 2022
1 parent 36bbca6 commit bc6c991
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion MstscManager/MstscManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>remote-desktop-512.ico</ApplicationIcon>
<AssemblyName>MstscManager</AssemblyName>
<AssemblyName>MSTSC远程管理器</AssemblyName>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
2 changes: 1 addition & 1 deletion MstscManager/Utils/Share.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public static class Share {
public static string iniconfig_path = @"data\MstscManager.ini";
public static string iniconfig_action = "Settings";
public static string now_group_name = "全部分类";
public static string now_version = "1.4";
public static string now_version = "1.5";
}
}
27 changes: 14 additions & 13 deletions MstscManager/Utils/radmin_helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public static void SendChar(IntPtr hand, char ch, int SleepTime) {
public static void auto_password(string ip,string user,string pass) {
#region 钩子过程
IntPtr mainWnd = FindWindow(null, "Radmin 安全性: "+ip);
Thread.Sleep(1000);
mainWnd = FindWindow(null, "Radmin 安全性: " + ip);
for (int i = 0; i < 30; i++) //最大查找3秒
{
if (mainWnd != IntPtr.Zero) {
Expand All @@ -68,19 +70,18 @@ public static void auto_password(string ip,string user,string pass) {
}
if (mainWnd == IntPtr.Zero) {//3秒内找不到就退出。
Console.WriteLine("没找到窗口");
//mainWnd = FindWindow("#32770 (对话框)", null);
//for (int i = 0; i < 30; i++) //最大查找3秒
//{
// if (mainWnd != IntPtr.Zero) {
// Trace.WriteLine(System.DateTime.UtcNow.ToString() + "找到!");
// break;
// }
// Thread.Sleep(100);
//}
//if (mainWnd == IntPtr.Zero) {//3秒内找不到就退出。
// return;
//}
return;
mainWnd = FindWindow(null, "Windows 安全性:" + ip);
for (int i = 0; i < 30; i++) //最大查找3秒
{
if (mainWnd != IntPtr.Zero) {
Trace.WriteLine(System.DateTime.UtcNow.ToString() + "找到!");
break;
}
Thread.Sleep(100);
}
if (mainWnd == IntPtr.Zero) {//3秒内找不到就退出。
return;
}
}

List<IntPtr> listWnd = new List<IntPtr>();
Expand Down
4 changes: 4 additions & 0 deletions Updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@
- [x] 添加主句时候默认填充当前选中分类
- [x] 添加主机隐藏查看密码和选择用户功能
- [x] 其他功能失去焦点时候自动关闭功能

## v1.5

- 修复了radmin 无法自动填充密码的问题 增加了兼容性

0 comments on commit bc6c991

Please sign in to comment.