|
Post by cryzed on Jan 16, 2016 1:58:39 GMT
Hey! Nope, I didn't have any actual need for direct support -- I simply wanted to make sure I wasn't doing something unintended with the exposed API, so I preferred to simply ask. I did end up buying the Pro version now by the way, after having it gotten to work with my phone properly . Regarding your tips, I didn't expect 1 to work -- particularly because I used that code, i.e. "table.getn(...)" with a print statement, and it ended up throwing an unhandled exception. Maybe I did something wrong or the construct "if x == 0 then ... else ... end" counts as some kind of exception handling, similar to the callback function for pcall? I have to experiment around a bit more. Regarding the advanced handling: If I'm not misunderstanding this is a bit slower and might lead to a potential race condition. For example: "exists" takes a screenshot, finds the pattern and returns true. Then during that computation the screen changes and "findAll" is called and assumed to work without any error-handling: the script would crash. Additionally the "exists" return value is simply discarded -- so I'm more a fan of either simply wrapping the "pcall" method as you suggested in 2, or possibly using the first example from 1 if I can get it to work. Thanks for the cool project, I hope it becomes even more popular! I'll let you know if I have any more suggestion, if that's fine with you.
|
|
|
Post by AnkuLua on Jan 16, 2016 2:19:35 GMT
Hey! Nope, I didn't have any actual need for direct support -- I simply wanted to make sure I wasn't doing something unintended with the exposed API, so I preferred to simply ask. I did end up buying the Pro version now by the way, after having it gotten to work with my phone properly . Regarding your tips, I didn't expect 1 to work -- particularly because I used that code, i.e. "table.getn(...)" with a print statement, and it ended up throwing an unhandled exception. Maybe I did something wrong or the construct "if x == 0 then ... else ... end" counts as some kind of exception handling, similar to the callback function for pcall? I have to experiment around a bit more. Regarding the advanced handling: If I'm not misunderstanding this is a bit slower and might lead to a potential race condition. For example: "exists" takes a screenshot, finds the pattern and returns true. Then during that computation the screen changes and "findAll" is called and assumed to work without any error-handling: the script would crash. Additionally the "exists" return value is simply discarded -- so I'm more a fan of either simply wrapping the "pcall" method as you suggested in 2, or possibly using the first example from 1 if I can get it to work. Thanks for the cool project, I hope it becomes even more popular! I'll let you know if I have any more suggestion, if that's fine with you. Yes. You are 100% correct. if (table.getn(allApples) == 0) can not avoid exception. pcall is the better solution now. Be careful about the file not found handling. Thank you for supporting the pro version. For the project to be more popular, you can help. Share your script (original or compiled).
|
|
|
Post by cryzed on Jan 16, 2016 3:10:15 GMT
See here, it's nothing impressive so far, but does exactly what I wanted it to do.
|
|
|
Post by AnkuLua on Jan 16, 2016 3:16:24 GMT
See here, it's nothing impressive so far, but does exactly what I wanted it to do. Cool. Enjoy automation. Free your hands.
|
|
|
Post by HyGreed on Mar 10, 2016 18:45:50 GMT
Hey... I have a query... In the modified form of calculator plus script, you hv used the attribute targetOffset(0,-67)... Thats really gr8 but i want to ask you that, how to find out the number of pixels between 6 and 9... I'm using my android phone to create script (using 'comet' app) and sapture the screen too... So i cnt use MWSnap tool.... Tell me how to find the pixels between two points....
|
|
mgzg
New Member
Posts: 7
|
Post by mgzg on Mar 11, 2016 5:30:07 GMT
Is there a function to do multitouch?
|
|
|
Post by HyGreed on Mar 13, 2016 13:33:48 GMT
Is there a function to do multitouch? Yup...
|
|
mgzg
New Member
Posts: 7
|
Post by mgzg on Mar 15, 2016 8:22:00 GMT
Care to elaborate? I have only found single touch and two points using zoom
|
|
|
Post by AnkuLua on Mar 15, 2016 9:18:07 GMT
There is currently no multi touch except zoom.
|
|
|
Post by HyGreed on Mar 17, 2016 10:46:45 GMT
There is currently no multi touch except zoom. Hey... I have a query... In the modified form of calculator plus script, you hv used the attribute targetOffset(0,-67)... Thats really gr8 but i want to ask you that, how to find out the number of pixels between 6 and 9... I'm using my android phone to create script (using 'comet' app) and capture the screen too... So i cnt use MWSnap tool.... Tell me how to find the pixels between two points....
|
|
|
Post by AnkuLua on Mar 17, 2016 12:13:06 GMT
There is currently no multi touch except zoom. Hey... I have a query... In the modified form of calculator plus script, you hv used the attribute targetOffset(0,-67)... Thats really gr8 but i want to ask you that, how to find out the number of pixels between 6 and 9... I'm using my android phone to create script (using 'comet' app) and capture the screen too... So i cnt use MWSnap tool.... Tell me how to find the pixels between two points.... We use SikuliX. www.sikulix.com/quickstart.htmlFirst insert the image to search. Then click the image in SikuliX. Then Pattern Settings window will appear. There is a feature called TargetOffset. A more detail description will be provided.
|
|
mgzg
New Member
Posts: 7
|
Post by mgzg on Mar 19, 2016 22:04:13 GMT
Is there any way to get multitouch added? Either that or passing a table of Locations/coordinates to continueClick? The continue click option could make it fast enough to bypass multitouch
|
|
|
Post by AnkuLua on Mar 19, 2016 23:43:39 GMT
Is there any way to get multitouch added? Either that or passing a table of Locations/coordinates to continueClick? The continue click option could make it fast enough to bypass multitouch Good idea. Will add in next version.
|
|
|
Post by AnkuLua on Mar 23, 2016 13:56:13 GMT
Is there any way to get multitouch added? Either that or passing a table of Locations/coordinates to continueClick? The continue click option could make it fast enough to bypass multitouch Good idea. Will add in next version. continueMultiTouch() is added in version 5.3.0 For more details, refer to ankulua.boards.net/thread/13/advanced-methodsEnjoy it.
|
|
mgzg
New Member
Posts: 7
|
Post by mgzg on Mar 26, 2016 10:50:03 GMT
Thank you very much for continueMultiTouch, it worked very well for my purpose until AnkuLua mysteriously stopped working after a reboot. I have done debugging of issues here: ankulua.boards.net/post/745/thread
|
|