|
Post by lakatl on May 19, 2019 13:57:20 GMT
Hello! I would like to know if there's a way to expand the searching area for one click but not the others - you see, there's this X sized 100x100 pixels or so but this X could be in the top right or top left corner so I'd like to have a wide search region to make sure it gets clicked no matter where it is. In addition to that, this X could vary on colour and background, say it's white with light background once but black with light background after - and even changes location. To solve that, I'm considering recording more types of that X so it's recognised every time. For that, I want the script to move on to the next step after it finds any variety of this X, possibly with one step/click (I also want it to wait but I don't know if that could be resolved with the same step/click). I'm looking for something like this: ------ 1 ----- target = "1.png" or target = "2.png" or target = "3.png" What is the simplest way to solve it, if there's any? It's easy to change the search area. Just modify the corresponding region in luar. If assigning nil to region, it will search the whole screen. If colors of the pictures are very different, you may need to record them separately. You may try clicking them many times. Please turn on the "Detect duplication". Then if AnkuLua find the pictures could be found by previous recorded picture, it would not be recorded. Thank you for the suggestions, they're great and seem to be working well! The only problem left is that if I add a new version of the X as, say, step 4, and the X is at step 2, it won't proceed to step 3 if the X is the step 4 type of X. I'd like X to be recognized and skip x steps so a full circle can be completed. I also see it sometimes doesn't detect the prevously recorded images. What can I do about that?
|
|
|
Post by AnkuLua on May 19, 2019 14:03:56 GMT
It's easy to change the search area. Just modify the corresponding region in luar. If assigning nil to region, it will search the whole screen. If colors of the pictures are very different, you may need to record them separately. You may try clicking them many times. Please turn on the "Detect duplication". Then if AnkuLua find the pictures could be found by previous recorded picture, it would not be recorded. Thank you for the suggestions, they're great and seem to be working well! The only problem left is that if I add a new version of the X as, say, step 4, and the X is at step 2, it won't proceed to step 3 if the X is the step 4 type of X. I'd like X to be recognized and skip x steps so a full circle can be completed. I also see it sometimes doesn't detect the prevously recorded images. What can I do about that? If it's complicated, you may need to write the action to do. Or please provide the screenshot and detailed information. Hard to know the details.
|
|
|
Post by lakatl on May 19, 2019 14:19:43 GMT
Thank you for the suggestions, they're great and seem to be working well! The only problem left is that if I add a new version of the X as, say, step 4, and the X is at step 2, it won't proceed to step 3 if the X is the step 4 type of X. I'd like X to be recognized and skip x steps so a full circle can be completed. I also see it sometimes doesn't detect the prevously recorded images. What can I do about that? If it's complicated, you may need to write the action to do. Or please provide the screenshot and detailed information. Hard to know the details. I believe it's working! I didn't get what you told me right at first, but after recording the images multiple times, they were recognized and now it's running smoothly. I'll let you know if I'll have another problem, thank you so much!
|
|
|
Post by mahnster on May 19, 2019 23:07:02 GMT
Still cant get this to only repeat when picture is clicked. I ran for like 6 hours yesterday and it got 6257 clicks of image... It definitely did not see the image that amount of times. Am i better off using the record and play script and just accepting the huge varying times of different runs in games? Atleast able to input a set amount of runs.
touchList[index] = {target = "rep1.png", region = Region(688, 597, 150, 150), id = "rep1", action = 'click'}
index = index + 1
Need this for set amount of times.
|
|
|
Post by touden on Jun 21, 2019 18:36:17 GMT
|
|
|
Post by AnkuLua on Jun 22, 2019 2:05:39 GMT
Which game did you play? How about other versions?
|
|
|
Post by touden on Jun 22, 2019 11:21:29 GMT
Which game did you play? How about other versions? Playing SW I didn't try old versions, but any script that snap the screen is giving this problem.
|
|
|
Post by AnkuLua on Jun 22, 2019 11:58:11 GMT
Which game did you play? How about other versions? Playing SW I didn't try old versions, but any script that snap the screen is giving this problem. Use daemon. Don't use accessibility. If there is still problem, try other emulators, like nox.
|
|
|
Post by touden on Jun 22, 2019 13:56:45 GMT
Playing SW I didn't try old versions, but any script that snap the screen is giving this problem. Use daemon. Don't use accessibility. If there is still problem, try other emulators, like nox. Here in Forum we have tutorial to get this Daemon?
|
|
|
Post by AnkuLua on Jun 22, 2019 14:43:55 GMT
|
|
|
Post by touden on Jun 22, 2019 18:18:07 GMT
Root was the solution... How to include the random click's after to create de script using snap and play?
|
|
|
Post by AnkuLua on Jun 23, 2019 1:10:57 GMT
Root was the solution... How to include the random click's after to create de script using snap and play? There is already a random click on playback options.
|
|
l24
New Member
Posts: 2
|
Post by l24 on Sept 7, 2019 20:45:45 GMT
I keep getting a runtime exception for "Media Projection Screenshot failed" on line 1240 for 2.8.3
|
|
|
Post by AnkuLua on Sept 8, 2019 0:44:40 GMT
I keep getting a runtime exception for "Media Projection Screenshot failed" on line 1240 for 2.8.3 Which device and Android version? Media Projection doesn't support emulators. Please try the latest version, 8.5.3. When allowing media projection, remember to check "Don't show again".
|
|
|
Post by trevypoo on Oct 21, 2019 3:23:48 GMT
Something really handy would be ability to play a sound or send notification someway when cannot find image for X amount of seconds. This would help with captcha or other random rare events.
|
|