Zori
New Member
Posts: 30
|
Post by Zori on Sept 24, 2022 23:09:17 GMT
I want to perform an exact sequence of different clicks (milliseconds difference matters) 2 times in a row. It's something possible to do with the record and play script, but the clicks are off. I guess it's related to the settings and touch methods, but I have no idea what is the best setup for this, can anyone help me? Should I develop a script for this?
|
|
|
Post by Mercobots on Sept 25, 2022 21:36:42 GMT
|
|
Zori
New Member
Posts: 30
|
Post by Zori on Sept 26, 2022 10:55:30 GMT
I see, I'll try to use it. Is there a chance you can help me set an example up? I don't need a ui whatsoever, for example, to perform 4 clicks, one at 1.003, one at 1.012, one at 1.1 and one at 1.108 (location doesn't really matter). I'm not sure how the methods works 😭
|
|
|
Post by Mercobots on Sept 26, 2022 11:44:18 GMT
I see, I'll try to use it. Is there a chance you can help me set an example up? I don't need a ui whatsoever, for example, to perform 4 clicks, one at 1.003, one at 1.012, one at 1.1 and one at 1.108 (location doesn't really matter). I'm not sure how the methods works 😭 oh i see, i trough it was the the other way, something like click 4 different locations in X time. so try this wait(1.003) click(Location(x,y))
-- wait(1.1 ) click(Location(x,y))
-- wait(1.012) click(Location(x,y))
-- wait(1.108) click(Location(x,y))
you may have some delays (click down/Ms and click interval/Ms), so you need to adjust your wait's time
|
|
Zori
New Member
Posts: 30
|
Post by Zori on Sept 26, 2022 12:53:58 GMT
I see, I'll try to use it. Is there a chance you can help me set an example up? I don't need a ui whatsoever, for example, to perform 4 clicks, one at 1.003, one at 1.012, one at 1.1 and one at 1.108 (location doesn't really matter). I'm not sure how the methods works 😭 oh i see, i trough it was the the other way, something like click 4 different locations in X time. so try this wait(1.003) click(Location(x,y))
-- wait(1.1 ) click(Location(x,y))
-- wait(1.012) click(Location(x,y))
-- wait(1.108) click(Location(x,y))
you may have some delays (click down/Ms and click interval/Ms), so you need to adjust your wait's time It's like the sub script the "record and play" script generates. Sometimes it's too early, sometimes it's too late, it's not accurate by the MS. Do you know what I can do to fix it?
|
|
|
Post by Mercobots on Sept 26, 2022 14:45:21 GMT
whit that precision, i'm not sure if you can since wait is not accurate to that point, what i recommend for you is to create a simple script without using record and play then try theses 2 approach
wait(1.003) click(Location(x,y))
-- wait(1.1 ) click(Location(x,y))
-- wait(1.012) click(Location(x,y))
-- wait(1.108) click(Location(x,y))
and
local timer = Timer()
while true do local time_elapsed = timer:check() if time_elapsed >= 1.108 then click(Location(x, y)) timer:set() elseif time_elapsed >= 1.1 then click(Location(x, y)) elseif time_elapsed >= 1.012 then click(Location(x, y)) elseif time_elapsed >= 1.003 then click(Location(x, y)) end end
if none of this helps i really don't know how to help you
|
|
Zori
New Member
Posts: 30
|
Post by Zori on Sept 27, 2022 11:12:04 GMT
whit that precision, i'm not sure if you can since wait is not accurate to that point, what i recommend for you is to create a simple script without using record and play then try theses 2 approach wait(1.003) click(Location(x,y))
-- wait(1.1 ) click(Location(x,y))
-- wait(1.012) click(Location(x,y))
-- wait(1.108) click(Location(x,y)) and local timer = Timer()
while true do local time_elapsed = timer:check() if time_elapsed >= 1.108 then click(Location(x, y)) timer:set() elseif time_elapsed >= 1.1 then click(Location(x, y)) elseif time_elapsed >= 1.012 then click(Location(x, y)) elseif time_elapsed >= 1.003 then click(Location(x, y)) end end
if none of this helps i really don't know how to help you Both of them are still inaccurate T_T Some times they are early sometimes they are late
|
|
|
Post by Mercobots on Sept 27, 2022 13:59:04 GMT
last approach  try this code instead and go under ankulua settings enable (BETA) Fast click and touch set values something like "click down MS" to 10 and "after click" to 100 in case the click fails you need to adjust theses values, also, i'm not sure but maybe you need to adjust your timings click according your ankulua settings, in other words Click delay = 1.108 - (click down MS + after click) Best luck local list = { -- <<<<<<<<<<<<<<<< timings and locations goes here {1.108, Location(x, y)}, {1.1, Location(x, y)}, {1.012, Location(x, y)}, {1.003, Location(x, y)} }
local function clickTest(i) local timer = Timer() while true do if timer:check() >= list[i][1] then click(list[i][2]) return end end end
clickTest(1) clickTest(2) clickTest(3) clickTest(4)
|
|