|
Post by bullets105 on Mar 11, 2017 17:21:40 GMT
I would like to enter a continueclick into my game script made through record and play and can't figure out how to set duration of continueclick. What do i need to add to this.....
touchList[index] = {"continueClick", Location(496, 959)} waitList[index] = 30.521000 index = index + 1
This just produces a short burst. I need it to click for at least 7-10 minutes
Help appreciated
|
|
|
Post by bullets105 on Mar 11, 2017 18:05:59 GMT
Even making the short burst repeat "x" amount of times would help
|
|
|
Post by KryTonX on Mar 11, 2017 18:59:39 GMT
from ankulua.boards.net/thread/13/advanced-methods#continueClick : "continueClick(PSMRL, times [,timeout]) Method continueClick also support PSRML objects and timeout parameters. There is no return value. continueClick could be called direct or from Region object. timeout is in seconds with precision up to milliseconds. 1.003 means 1 second and 3 milliseconds." " You can give it an Location Object (like the one you have: Location(496, 959) ) and give it an extreme high count and use the timeout value to make it stop at the right time. for example: continueClick(Location(496, 959),(insert high number here),600) <-- 600= 60*10 => 10 Minutes this should replace the whole part you used before in just one line, never tried it though, so it is not 100% usable, just try it out and tell me if it worked! Another option would be "repeat until" example: local ntime = os.time() + (seconds here)
repeat continueClick(496, 959,1,1,100) <-- Click 100 times at the location (496,959) with a random offset from 1 until os.time() > ntime
|
|
|
Post by bullets105 on Mar 11, 2017 20:59:27 GMT
Still haven't solved it. I tried putting an extra value in brackets and it didn't change it. This is what my script looks like. ------ 250 ----- touchList[index] = {"click", Location(885, 1756)} waitList[index] = 1.741000 index = index + 1
------ 251 ----- touchList[index] = {"click", Location(878, 1744)} waitList[index] = 2.291000 index = index + 1
------ 252 ----- touchList[index] = {"click", Location(880, 1755)} waitList[index] = 550.796000 index = index + 1
------ 253 ----- touchList[index] = {"swipe", Location(486, 1679), Location(436, 1355.5)} waitList[index] = 2.968000 index = index + 1
------ 254 ----- touchList[index] = {"click", Location(918, 1249)} waitList[index] = 1.163000 index = index + 1
Where there's a wait of 550 seconds step 252, that step is more efficient if it's tapping continuously. I've tried continueclick in the brackets, it just burst once then waits for 550 seconds. Please help
|
|
|
Post by AnkuLua on Mar 12, 2017 1:04:16 GMT
Just change the click to continueClick.
------ 252 ----- touchList[index] = {"continueClick", Location(880, 1755)} waitList[index] = 550.796000 index = index + 1
It will click 100 times. If you need more, modify the recordAndPlay.lua. There are lines like
elseif (t[1] == "continueClick") then continueClick(t[2], 100) else
Change the 100 to any value you want.
|
|
|
Post by bullets105 on Mar 12, 2017 10:23:59 GMT
Once i change the value to 20000 clicks. Then change all the relevant steps to continueClick... It comes up with an error message after saying it needs to save modified fields
|
|
|
Post by AnkuLua on Mar 12, 2017 10:36:15 GMT
Please share the script and error screenshot.
|
|
|
Post by bullets105 on Mar 12, 2017 10:46:07 GMT
I've emailed script and screenshot. Thanks
|
|