feat(scanner): complete localized artifact quality checkpoint
This commit is contained in:
@@ -197,8 +197,12 @@ function Get-GenshinClientBounds {
|
||||
}
|
||||
|
||||
function Find-GenshinWindow {
|
||||
if ($script:genshinHwnd -ne [IntPtr]::Zero -and [Native.InputHelper]::IsWindow($script:genshinHwnd)) { return $script:genshinHwnd }
|
||||
$proc = Get-Process | Where-Object { $_.ProcessName -match 'GenshinImpact|YuanShen|Genshin' -and $_.MainWindowHandle -ne 0 } | Select-Object -First 1
|
||||
if ($script:genshinHwnd -ne [IntPtr]::Zero -and [Native.InputHelper]::IsWindow($script:genshinHwnd)) {
|
||||
$cachedName = Get-ProcessNameFromHwnd -hwnd $script:genshinHwnd
|
||||
if ($cachedName -in @('GenshinImpact', 'YuanShen')) { return $script:genshinHwnd }
|
||||
$script:genshinHwnd = [IntPtr]::Zero
|
||||
}
|
||||
$proc = Get-Process | Where-Object { $_.ProcessName -in @('GenshinImpact', 'YuanShen') -and $_.MainWindowHandle -ne 0 } | Select-Object -First 1
|
||||
if ($proc) { $script:genshinHwnd = $proc.MainWindowHandle } else { $script:genshinHwnd = [IntPtr]::Zero }
|
||||
return $script:genshinHwnd
|
||||
}
|
||||
@@ -283,6 +287,7 @@ while ($true) {
|
||||
$response.escapePressed = $state.escapePressed
|
||||
$response.enterPressed = $state.enterPressed
|
||||
$response.f9Pressed = $state.f9Pressed
|
||||
$response.isElevated = Get-CurrentProcessElevation
|
||||
}
|
||||
"runtime" {
|
||||
$response.isElevated = Get-CurrentProcessElevation
|
||||
|
||||
Reference in New Issue
Block a user