chore: 修复 desktop-picker.ps1 中 DllImport 字符串的引号不一致问题

这个提交包含在:
yu 于 2026-10-30 14:44:36 +08:00 提交
1 父节点 483b01c8b6
当前提交 f74d1865da
1 个文件已更改
+1 -1
+1 -1
查看文件
@@ -7,7 +7,7 @@ function Write-PickLog([string]$msg) {
}
Write-PickLog ("=== start Mode=$Mode ===")
Add-Type -AssemblyName UIAutomationClient, UIAutomationTypes, WindowsBase
Add-Type -MemberDefinition "[DllImport("user32.dll")] public static extern bool SetProcessDpiAwarenessContext(IntPtr value);" -Name PickDpi -Namespace RpaPick | Out-Null
Add-Type -MemberDefinition '[DllImport("user32.dll")] public static extern bool SetProcessDpiAwarenessContext(IntPtr value);' -Name PickDpi -Namespace RpaPick | Out-Null
try { [RpaPick.PickDpi]::SetProcessDpiAwarenessContext([IntPtr](-4)) | Out-Null } catch {}
Write-PickLog "dpi aware set"
Add-Type -AssemblyName System.Windows.Forms