How To Call It
SwipeParam is a singleton global table: call its functions with a dot (SwipeParam.<method>(...)).
Swipe settings for swipe(): repeat count, pauses between repeats and waypoints, and a random offset.
Documented for app version 1.0.51Updated:
SwipeParam is a singleton global table: call its functions with a dot (SwipeParam.<method>(...)).
Parameter objects work best when prepared in a dedicated variable and reused across search or action calls.
SwipeParam offers 6 methods; each method page lists its parameters and return value.
This object is mostly used to prepare input for action APIs such as Region searches, click(), swipe() and Replay playback.
The snippet below is a starter pattern that can be applied directly in runtime flow.
swipe({ GesturePoint(Point(540, 1500), 0, 0), GesturePoint(Point(540, 500), 0, 300) }, SwipeParam["repeat"](2))From foundation to combined usage, each level is provided as a separate code block so you can copy the level you need and adapt it directly.
swipe({ GesturePoint(Point(540, 1500), 0, 0), GesturePoint(Point(540, 500), 0, 300) }, SwipeParam["repeat"](2))swipe({ GesturePoint(Point(540, 1500), 0, 0), GesturePoint(Point(540, 500), 0, 300) }, SwipeParam["repeat"](2))
-- Continue with one focused method on the object.swipe({ GesturePoint(Point(540, 1500), 0, 0), GesturePoint(Point(540, 500), 0, 300) }, SwipeParam["repeat"](2))
local note = "SwipeParam overview loaded"
print(note)-- Parameter objects work best when prepared in a dedicated variable and reused across search or action calls.
local function run_swipeparam_step()
swipe({ GesturePoint(Point(540, 1500), 0, 0), GesturePoint(Point(540, 500), 0, 300) }, SwipeParam["repeat"](2))
end
local ok, err = pcall(run_swipeparam_step)
if not ok then
toast("Step failed")
print(err)
endswipe({ GesturePoint(Point(540, 1500), 0, 0), GesturePoint(Point(540, 500), 0, 300) }, SwipeParam["repeat"](2))
wait(200)
print("Combined with logging and flow control")