How To Call It
ClickParam is a singleton global table: call its functions with a dot (ClickParam.<method>(...)).
Tap settings for click(): repeat count, hold time, pauses after each tap and a random offset.
Documented for app version 1.0.51Updated:
ClickParam is a singleton global table: call its functions with a dot (ClickParam.<method>(...)).
Parameter objects work best when prepared in a dedicated variable and reused across search or action calls.
ClickParam 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.
click(Point(540, 960), ClickParam.hold(120))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.
click(Point(540, 960), ClickParam.hold(120))click(Point(540, 960), ClickParam.hold(120))
-- Continue with one focused method on the object.click(Point(540, 960), ClickParam.hold(120))
local note = "ClickParam overview loaded"
print(note)-- Parameter objects work best when prepared in a dedicated variable and reused across search or action calls.
local function run_clickparam_step()
click(Point(540, 960), ClickParam.hold(120))
end
local ok, err = pcall(run_clickparam_step)
if not ok then
toast("Step failed")
print(err)
endclick(Point(540, 960), ClickParam.hold(120))
wait(200)
print("Combined with logging and flow control")