多项功能优化

This commit is contained in:
GG Z
2024-12-22 10:26:12 +08:00
parent 77655c9ef5
commit 83b846f15f
66 changed files with 5424 additions and 2927 deletions

View File

@@ -222,11 +222,13 @@ public class KeyIntPtrHelper
/// <summary>
/// 执行Esc两次退出Revit选择
/// </summary>
public static void ActionEsc()
public static void RaiseEscTwice()
{
SetForegroundWindow(ComponentManager.ApplicationWindow);
keybdEvent(27, 0, 0, 0);
keybdEvent(27, 0, 2, 0);
//keybdEvent(0x1B, 0, 0, 0);
//keybdEvent(0x1B, 0, 0, 0);
}
/// <summary>
@@ -260,7 +262,7 @@ public class KeyIntPtrHelper
return true;
}
GetWindowThreadProcessId(hWnd, out uint num);
GetWindowThreadProcessId(hWnd, out var num);
if (num != (ulong)pid)
{
return true;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff