添加项目文件。

This commit is contained in:
ShrlAlgo
2025-09-16 16:06:41 +08:00
parent 0e7807b826
commit 98c65ceb3d
922 changed files with 1009489 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Runtime.InteropServices;
namespace Szmedi.Toolkit.Assists
{
public static class KeyPressAssists
{
public static IntPtr RevitWindowPtr = Autodesk.Windows.ComponentManager.ApplicationWindow;
[DllImport("user32.dll")]
internal static extern bool SetForegroundWindow(IntPtr hWnd);
[DllImport("user32.dll")]
internal static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
public static void SetFocusRVT()
{
SetForegroundWindow(RevitWindowPtr);
}
}
}