|
Post by nata488 on Oct 14, 2017 21:45:55 GMT
is there an event when image found it press enter
|
|
|
Post by AnkuLua on Oct 14, 2017 23:30:58 GMT
There are many options for "The action when drag & drop or swipe detected: ". One is "If A found, click B".
|
|
|
Post by nata488 on Nov 28, 2017 0:35:35 GMT
is there a script if image found continue clicking until the mage was gone
|
|
|
Post by AnkuLua on Nov 28, 2017 0:53:10 GMT
You can do that with this script. If you want the continuing click fast, you could modify the generated luar. Change the "click" to "while(existsClick("target.png",0)) begin end"
|
|
|
Post by pascotini on Jan 3, 2018 19:15:15 GMT
I'm trying to make a script for grow stone but sometimes dragDrop use the same image, it tries to drag and drop in the same image, how can I do so that it does not happen?
|
|
|
Post by AnkuLua on Jan 4, 2018 0:39:16 GMT
It should work. The dragDrop should be in different regions. If not, please provide more details, including screenshot and generated luar.
|
|
|
Post by Exilereven on Jan 5, 2018 3:54:05 GMT
I think he's talking about the 1st and 3rd stone. They are exact same image but one is red, one is gray. You have to make sure to check for color as well on your first and third stones.
|
|
|
Post by basturk on Jan 19, 2018 2:08:26 GMT
why am i always getting ioexception cant connect to localhost daemon need reinstall
|
|
|
Post by AnkuLua on Jan 19, 2018 6:12:24 GMT
What's your device and Android version?
|
|
|
Post by ricjonsu098 on Jan 21, 2018 0:28:13 GMT
Considering we have "if found a, click b" do we have something like (1)"if NOT found A, click B" and (2)"if NOT found A, keep finding A"?
it will be really great if we can do the 2nd one, or can we do this already?
|
|
|
Post by AnkuLua on Jan 21, 2018 0:48:51 GMT
To do that, it's better to modify the generated luar. It's all generated luar is based on picture on the screen. It's hard to specify something not on screen. Generally, users snap many pictures in one script.
You can modify it as if found B (this is done by original luar) then if not exists("A.png", 0) then click(matchResult) end end For example, the original generated luar is
------ 2 ----- touchList[index] = {target = "B.png", region = Region(774, 493, 150, 150), id = "B", action = 'click'} index = index + 1
Modify this part to
------ 2 ----- touchList[index] = {target = "B.png", region = Region(774, 493, 150, 150), id = "B", action = ' if not exists("A.png", 0) then click(matchResult) end end'} index = index + 1
|
|
|
Post by zipper on Feb 9, 2018 18:34:53 GMT
Is it possible to add a small series of clicks at a fixed x y cordinate after the snap and play routine did the click?
My problem is that after a recorded region is clicked buttons appear to select "cancel" or "ok", the ok button is often found and clicked to early in the script preventing the cancel button to be clicked at the right index number.
I prefer to not modify the snapandplay.lua as i record many small scripts and want to keep it intact.
|
|
|
Post by ragnarok214 on Feb 28, 2018 21:17:53 GMT
Anyone get this to work with final fantasy dissidia opera omnia? Unable to make it work properly.
|
|
thesh
New Member
Posts: 1
|
Post by thesh on Mar 7, 2018 10:41:24 GMT
hi
is there a way to stop looking for a particular image after it is found and just only search from the next one?
the problem i am having now is that when i get to a stage, the auto button has to be selected but the button remains on the screen. This is causing the script to keep hitting the auto button since it keeps finding the image and it keeps switching auto on and off.
is there way to work around this?
|
|
|
Post by edwinrery on Mar 9, 2018 6:08:48 GMT
Need help with this error
Message
Syntax error: /sdcard/AnkuLua/snap.lua:1: Unexpected symbol near '"chinnese chart"
Im using galaxy s7 flat, android 7, ankuluapro2, it happen after load snapandplay script latest version and press play button
|
|