feat: save screenshot after action

This commit is contained in:
lilong.129
2025-05-12 18:04:56 +08:00
parent 0722e92e87
commit 9c735bd46a
9 changed files with 72 additions and 50 deletions
+2 -2
View File
@@ -159,7 +159,7 @@ func (hd *HDCDriver) TapAbsXY(x, y float64, opts ...option.ActionOption) error {
if err != nil {
return err
}
defer postHandler(hd, actionOptions)
defer postHandler(hd, ACTION_TapAbsXY, actionOptions)
if actionOptions.Identifier != "" {
startTime := int(time.Now().UnixMilli())
@@ -191,7 +191,7 @@ func (hd *HDCDriver) Swipe(fromX, fromY, toX, toY float64, opts ...option.Action
if err != nil {
return err
}
defer postHandler(hd, actionOptions)
defer postHandler(hd, ACTION_Swipe, actionOptions)
duration := 200
if actionOptions.PressDuration > 0 {