|
Post by cutepolarbear on Jul 9, 2020 5:57:41 GMT
hi, how do I find a button (image), keep clicking on the found image every 2 seconds until another image (somewhere else) shows up? (then I need to click the other image, but maybe that can be done as another touchlist).
Thank you.
|
|
|
Post by AnkuLua on Jul 9, 2020 7:34:20 GMT
hi, how do I find a button (image), keep clicking on the found image every 2 seconds until another image (somewhere else) shows up? (then I need to click the other image, but maybe that can be done as another touchlist). Thank you. Does the first image shows when the second one shows up? If not, you can use snap and play. Otherwise, it's better that you write the script.
|
|
|
Post by cutepolarbear on Jul 9, 2020 8:59:46 GMT
hi, how do I find a button (image), keep clicking on the found image every 2 seconds until another image (somewhere else) shows up? (then I need to click the other image, but maybe that can be done as another touchlist). Thank you. Does the first image shows when the second one shows up? If not, you can use snap and play. Otherwise, it's better that you write the script. Yes. First image shows when second one shows up. I was thinking something like below (i'm new to syntax / language). Thank you! touchList[index] = {target = "1.png", region = Region(612, 493, 150, 150), id = "1", action = 'while(not exists("2.png", 500000))do if(exists("2.png",0) do break end end'}
|
|
|
Post by AnkuLua on Jul 9, 2020 23:05:31 GMT
Does the first image shows when the second one shows up? If not, you can use snap and play. Otherwise, it's better that you write the script. Yes. First image shows when second one shows up. I was thinking something like below (i'm new to syntax / language). Thank you! touchList[index] = {target = "1.png", region = Region(612, 493, 150, 150), id = "1", action = 'while(not exists("2.png", 500000))do if(exists("2.png",0) do break end end'} Try this touchList[index] = {target = "1.png", region = Region(612, 493, 150, 150), id = "1", action = 'while(not existsClick("2.png")) do click(matchResult); wait(2) end'
|
|
|
Post by cutepolarbear on Jul 10, 2020 4:19:46 GMT
Yes. First image shows when second one shows up. I was thinking something like below (i'm new to syntax / language). Thank you! touchList[index] = {target = "1.png", region = Region(612, 493, 150, 150), id = "1", action = 'while(not exists("2.png", 500000))do if(exists("2.png",0) do break end end'} Try this touchList[index] = {target = "1.png", region = Region(612, 493, 150, 150), id = "1", action = 'while(not existsClick("2.png")) do click(matchResult); wait(2) end'
THank you. How to check for exists of another image (without clicking it (existsClick))? (below is wrong I think because matchResult is probably matchResult from the check in while condition?) touchList[index] = {target = "world.png", region = Region(269, 1226, 52, 52), id = "1", action = 'while(not exists("co-op.png")) do click(matchResult); wait(2) end' } I tried below also: touchList[index] = {target = "world.png", region = Region(269, 1226, 52, 52), id = "1", action = 'while(not exists("co-op.png")) do click(Location(269, 1226)); wait(2) end' }
|
|
|
Post by shining on Aug 19, 2020 11:27:31 GMT
How increase the click speed, I clicked on beta fast but it was still 5s just clicked, script i setting 1s but it doesn't do that, my game needs multiple clicks different
|
|
|
Post by AnkuLua on Aug 19, 2020 11:53:19 GMT
How increase the click speed, I clicked on beta fast but it was still 5s just clicked, script i setting 1s but it doesn't do that, my game needs multiple clicks different It needs time to do image comparison. If you need special requests on speed, you may need to write your own script.
|
|
|
Post by shining on Aug 19, 2020 13:27:28 GMT
How increase the click speed, I clicked on beta fast but it was still 5s just clicked, script i setting 1s but it doesn't do that, my game needs multiple clicks different It needs time to do image comparison. If you need special requests on speed, you may need to write your own script. O.K Thanks !!
I want to ask one more opinion
I use record and play very well but I don't know why when I surf the web and play some games my emulator is messed with click even the emulator macro, I don't know how fix it
|
|
|
Post by AnkuLua on Aug 19, 2020 14:03:34 GMT
It needs time to do image comparison. If you need special requests on speed, you may need to write your own script. O.K Thanks !!
I want to ask one more opinion
I use record and play very well but I don't know why when I surf the web and play some games my emulator is messed with click even the emulator macro, I don't know how fix it
Don't know your question well Please provide details. Screenshots or video is better.
|
|
|
Post by grmpflmpf on Sept 13, 2020 8:54:53 GMT
Hi,
is there an 'action' available, that not only 'clicks' the found region, but 'click and hold down for a specified amount of time'? I need to simulate a continuous 'button press' of about 10 seconds...
|
|
|
Post by AnkuLua on Sept 13, 2020 10:32:00 GMT
Hi, is there an 'action' available, that not only 'clicks' the found region, but 'click and hold down for a specified amount of time'? I need to simulate a continuous 'button press' of about 10 seconds... change the action = 'click' to action = 'longClick(matchResult, 10)'
|
|
|
Post by grmpflmpf on Sept 13, 2020 10:54:43 GMT
> change the action = 'click' to > action = 'longClick(matchResult, 10)'
Perfect! Works like a charm.
Thanks
|
|
|
Post by jamesp on Oct 30, 2020 10:22:50 GMT
Hi, I found that something like:
wait1 = math.random(199, 299) * 0.001
isn't actually random because every time the script repeats it will repeat the same value. Is there anyway I can have a random value every time it repeats an action?
Also can you change read accuracy for individual items?
|
|
|
Post by AnkuLua on Oct 30, 2020 22:24:50 GMT
Hi, I found that something like: wait1 = math.random(199, 299) * 0.001 isn't actually random because every time the script repeats it will repeat the same value. Is there anyway I can have a random value every time it repeats an action? Also can you change read accuracy for individual items? It's random but the range is small. It's between 0.199 to 0.299 We don't provide the accuracy for each item. You can edit the luar and assign each item the similarity.
|
|
|
Post by jamesp on Oct 31, 2020 2:49:54 GMT
Hi, I found that something like: wait1 = math.random(199, 299) * 0.001 isn't actually random because every time the script repeats it will repeat the same value. Is there anyway I can have a random value every time it repeats an action? Also can you change read accuracy for individual items? It's random but the range is small. It's between 0.199 to 0.299 We don't provide the accuracy for each item. You can edit the luar and assign each item the similarity. Are you sure its random? For example, wait1 = math.random(9, 99) Say this gives me 10 in the first run of the script, but then when it repeats the script the second time it will use 10 again, and the next time also 10, etc. How do I change that so there is more randomness and its different everytime? Or is math.random the wrong function to use here. Also, which function is used for assigning items a similarity percentage? Thanks.
|
|