How To Call It
PlayParam is a singleton global table: call its functions with a dot (PlayParam.<method>(...)).
Playback settings for Replay.play(): repeats, pauses, a random offset and speed.
Documented for app version 1.0.51Updated:
PlayParam is a singleton global table: call its functions with a dot (PlayParam.<method>(...)).
Parameter objects work best when prepared in a dedicated variable and reused across search or action calls.
PlayParam offers 7 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.
Replay.play("daily_route", PlayParam.setSpeed(1.5))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.
Replay.play("daily_route", PlayParam.setSpeed(1.5))Replay.play("daily_route", PlayParam.setSpeed(1.5))
-- Continue with one focused method on the object.Replay.play("daily_route", PlayParam.setSpeed(1.5))
local note = "PlayParam overview loaded"
print(note)-- Parameter objects work best when prepared in a dedicated variable and reused across search or action calls.
local function run_playparam_step()
Replay.play("daily_route", PlayParam.setSpeed(1.5))
end
local ok, err = pcall(run_playparam_step)
if not ok then
toast("Step failed")
print(err)
endReplay.play("daily_route", PlayParam.setSpeed(1.5))
wait(200)
print("Combined with logging and flow control")