mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 22:05:50 +00:00
feat: 全部类型问题解决
This commit is contained in:
@@ -394,10 +394,10 @@ public class WScroll {
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
const screenshot: ScreenshotPlatform = {
|
||||
async captureScreen(displayId) {
|
||||
async captureScreen(displayId): Promise<ScreenshotResult> {
|
||||
// If HWND is bound, capture that specific window
|
||||
if (boundHwnd) {
|
||||
const result = this.captureWindow?.(String(boundHwnd))
|
||||
const result = await this.captureWindow?.(String(boundHwnd))
|
||||
if (result) return result
|
||||
}
|
||||
|
||||
@@ -415,10 +415,10 @@ const screenshot: ScreenshotPlatform = {
|
||||
)
|
||||
},
|
||||
|
||||
async captureRegion(x, y, w, h) {
|
||||
async captureRegion(x, y, w, h): Promise<ScreenshotResult> {
|
||||
// When HWND is bound, the window IS the region (matches macOS behavior)
|
||||
if (boundHwnd) {
|
||||
const result = this.captureWindow?.(String(boundHwnd))
|
||||
const result = await this.captureWindow?.(String(boundHwnd))
|
||||
if (result) return result
|
||||
}
|
||||
return this.captureScreen()
|
||||
|
||||
Reference in New Issue
Block a user