多项功能优化
This commit is contained in:
@@ -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;
|
||||
|
||||
1176
Sai.Toolkit.Revit/Helpers/ParameterAssist.cs
Normal file
1176
Sai.Toolkit.Revit/Helpers/ParameterAssist.cs
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user