From f74d1865dad74c0ca74f07b44d566b3313965869 Mon Sep 17 00:00:00 2001 From: yu <191972707@qq.com> Date: Fri, 30 Oct 2026 14:44:36 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=20desktop-picker.ps?= =?UTF-8?q?1=20=E4=B8=AD=20DllImport=20=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E7=9A=84=E5=BC=95=E5=8F=B7=E4=B8=8D=E4=B8=80=E8=87=B4=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/desktop-picker.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/desktop-picker.ps1 b/resources/desktop-picker.ps1 index de0be03..41c5b4e 100644 --- a/resources/desktop-picker.ps1 +++ b/resources/desktop-picker.ps1 @@ -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