fix: 修复文件名过长,并打印部分有效信息

This commit is contained in:
余泓铮
2025-07-11 17:14:23 +08:00
parent 9c7f4b9275
commit fbf543bdda
2 changed files with 5 additions and 6 deletions
-3
View File
@@ -176,9 +176,6 @@ func (dExt *XTDriver) GetScreenTexts(opts ...option.ActionOption) (ocrTexts ai.O
func (dExt *XTDriver) FindScreenText(text string, opts ...option.ActionOption) (textRect ai.OCRText, err error) {
options := option.NewActionOptions(opts...)
if options.ScreenShotFileName == "" {
opts = append(opts, option.WithScreenShotFileName(fmt.Sprintf("find_screen_text_%s", text)))
}
// convert relative scope to absolute scope
if options.AbsScope == nil && len(options.Scope) == 4 {