测试代码:
clickPoint = function(x, y)
local gesture = Gesture:new()
local path = Path:new()
path:setStartTime(0)
path:setDurTime(1)
path:addPoint(x, y)
gesture:addPath(path)
gesture:dispatch()
end
while true do
--clickPoint(500,100)
tap(500,100)
sleep(100)
collectgarbage("collect")
end
监测方法:
adb shell
watch -n 3 'ps|grep nx'
|