Hi, I have this function:
function fog()
wait(0.550)
click(Location(571, 159))
wait(0.01)
click(Location(562, 159))
wait(0.01)
click(Location(553, 159))
wait(0.01)
click(Location(544, 159))
wait(0.01)
click(Location(535, 159))
wait(0.01)
click(Location(526, 159))
wait(0.01)
click(Location(517, 159))
wait(0.003)
click(Location(508, 159))
wait(0.01)
click(Location(499, 159))
wait(0.01)
click(Location(490, 159))
wait(0.01)
click(Location(481, 159))
wait(0.249)
end
Is there a way to speed up this execution? Like 1x fast, 2x fast, 3x fast
Is there a way to speed up this execution? Like 1x fast, 2x fast, 3x fast
THX
There are many ways to accomplish what your asking, this is just one of them. I hope it helps.
--START OF SCRIPT, BEGIN COPY HERE
--You may need to adjust your fast click settings in ankulua options. I put mine on down 50, up 100. i use accessibility.
--Yes i realize we could have just used a variable for all of your wait() times but your calling click over and over and over. This manualTouch() approach allows you to control more variables about the clicks and only calls click once, instead of 11 different calls for click.
function fog()
setManualTouchParameter(5, 1)
move = { --this is our action table
--Click 1 Each of these chunks simulates a touchdown and up like a normal click, were just using manualTouch() to precisely control the speed in between clicks.
{ action = "touchDown", target = Location(571, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(571, 159) },
{ action = "wait", target = UI_SPEED },
--Click 2
{ action = "touchDown", target = Location(562, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(562, 159) },
{ action = "wait", target = UI_SPEED },
--Click 3
{ action = "touchDown", target = Location(553, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(553, 159) },
{ action = "wait", target = UI_SPEED },
--Click 4
{ action = "touchDown", target = Location(544, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(544, 159) },
{ action = "wait", target = UI_SPEED },
--Click 5
{ action = "touchDown", target = Location(535, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(535, 159) },
{ action = "wait", target = UI_SPEED },
--Click 6
{ action = "touchDown", target = Location(526, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(526, 159) },
{ action = "wait", target = UI_SPEED },
--Click 7
{ action = "touchDown", target = Location(517, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(517, 159) },
{ action = "wait", target = UI_SPEED },
--Click 8
{ action = "touchDown", target = Location(508, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(508, 159) },
{ action = "wait", target = UI_SPEED },
--Click 9
{ action = "touchDown", target = Location(499, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(499, 159) },
{ action = "wait", target = UI_SPEED },
--Click 10
{ action = "touchDown", target = Location(490, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(490, 159) },
{ action = "wait", target = UI_SPEED },
--Click 11
{ action = "touchDown", target = Location(481, 159) },
{ action = "wait", target = .2 },
{ action = "touchUp", target = Location(481, 159) },
{ action = "wait", target = UI_SPEED },
}
manualTouch(move)
end
dialogInit()
addTextView("Click Speed:")
addEditNumber("UI_SPEED", .2) --sets the default speed between clicks to .2 seconds. increase or decrease when the dialog pops up to change speed.
newRow()
dialogShow()
--Main Start
fog()
--END OF SCRIPT STOP COPY HERE