|
Post by zpt on Dec 15, 2015 20:42:19 GMT
Is there any way to capture colored image by region and save it with different file name? Something like Sikuli's capture() function.
|
|
kase
New Member
Posts: 5
|
Post by kase on Dec 16, 2015 0:22:43 GMT
Hello AnkuLua. I want to ask what the difference between ROOT, DAEMON, and Background Touch are? They are found in settings. Are they more reliable?
Also, for methods/objs. that have seconds in them like : waitVanish(PS[, seconds]) does that mean that it pauses the whole script and waits for the image to vanish until the elapsed time and then moves on or does it move on anyway?
|
|
|
Post by AnkuLua on Dec 16, 2015 8:31:20 GMT
Is there any way to capture colored image by region and save it with different file name? Something like Sikuli's capture() function. Sorry. AnkuLua doesn't support capture() method now. Instead, you can use Settings:snapSet("OutputRegImg", true) and save the the region to /sdcard/AnkuLua/captured_images/region.png The captured image is not colored, however.And it's resized according to the compareDimension Refer to settings for details. Take an example from our best friend, calculator plus, region = wait("6.png") Settings:snapSet("OutputRegImg", true) -- turn on the setting region:exists("7.png", 0) -- every region related methods, the region will be saved Settings:snapSet("OutputRegImg", false) -- turn off for better speed
|
|
|
Post by AnkuLua on Dec 16, 2015 8:41:12 GMT
Welcome to AnkuLua. Hello AnkuLua. I want to ask what the difference between ROOT, DAEMON, and Background Touch are? They are found in settings. Are they more reliable? Root means that your device is rooted. Still don't know what's root. Then just forget it. And you need to install Daemon. Both are reliable. Daemon may be a little faster. About background touch: In this mode, the touch command will be sent and executed on background. At the same time, other non screenshot nor touch commands could be executed. When executing next screenshot or touch command, it will wait the previous command completed. It's also for speed. You don't need to check it (turn on) for normal application. Also, for methods/objs. that have seconds in them like : waitVanish(PS[, seconds]) does that mean that it pauses the whole script and waits for the image to vanish until the elapsed time and then moves on or does it move on anyway? As said in Basic Objects and MethodsThis method keeps searching the given pattern in the region until the image vanishes (can not be found with Region.find() any longer) or the specified amount of time has elapsed. The script is paused.
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on May 23, 2016 17:32:17 GMT
Could you add a setting to set the default position of the play/stop button? (It's always bottom-left now, while I prefer the right-top) And/or maybe get Ankulua to remember the last position of the play/stop button?
|
|
|
Post by AnkuLua on May 24, 2016 9:27:20 GMT
Could you add a setting to set the default position of the play/stop button? (It's always bottom-left now, while I prefer the right-top) And/or maybe get Ankulua to remember the last position of the play/stop button? Will study it.
|
|
|
Post by spitfire211 on Nov 5, 2017 16:39:34 GMT
hi i dont know if this is right place to post be but seeing real screen size up top sort of think it might be...... i am running android lolipop on a laptop not an emulator ..i need ankulua to see full screen but only a third of the screen is yellow ....i resized app to fit in yellow area ....i run the snap and play it does all the record bits but never finds the png afterwards
will ankulua work in this environment thanks
|
|
|
Post by AnkuLua on Nov 6, 2017 0:48:51 GMT
What's the device? Please also make AnkuLua full screen.
|
|
|
Settings
Nov 8, 2017 22:31:09 GMT
via mobile
Post by spitfire211 on Nov 8, 2017 22:31:09 GMT
What's the device? Please also make AnkuLua full screen. It's a dell Inspiron 1545 I'll try Annulus in full screen tonight if it does what I need I'll buy full license as it will save me a lot of time
|
|
|
Post by rabiddoughnuts on Jun 7, 2018 23:52:57 GMT
So, I might not be understanding this right, but I believe right now the script either measures width, or height, but only one or the other. If that is correct that would mean the script would only be able to adjust to resolutions of the same aspect ratio, which worked for a long time, but now as more and more devices are trying to be more efficient about screen size and use, aspect ratios are getting all crazy, then add in the fact that notches and other weird screen layouts are causing apps to not use full screen size, I was wondering if it would be possible to make a command that at script start would measure full screen width and height area used by the open app to be automated, and then scale the rest of the script. IF this is possible and works correctly it should allow a script to be made on any aspect ratio to be used on any other aspect ratio.
|
|
|
Post by AnkuLua on Jun 8, 2018 15:43:46 GMT
Basically, different games handle different aspect ratios in different ways. The script may need to handle different aspect ratios according to different games.
|
|
|
Post by rabiddoughnuts on Jun 15, 2018 23:19:13 GMT
Basically, different games handle different aspect ratios in different ways. The script may need to handle different aspect ratios according to different games. Currently the only way to handle different aspect ratios though is basically writing a whole different set of areas, and images for each aspect ratio, essentially writing a separate script for each ratio. While my idea might not work for all games, i do believe reading entire app resolution would work for most games to where script writers would only need to write one script and it would adapt for each phone from there, the current method would work for games that didn't apply direct image scaling which is rare.
|
|
|
Post by lionheart2525a on Jun 5, 2020 16:12:23 GMT
Seems like I have the same issue. Any help would be appreciated. prnt.sc/suh2s9
|
|
|
Post by AnkuLua on Jun 5, 2020 23:21:46 GMT
|
|
ATG
Junior Member
Posts: 79
|
Post by ATG on Aug 14, 2020 3:30:11 GMT
in the guide, it says setAlternativeClick(enable) when i tried it, it returned me an error. So i changed to true and it is working setAlternativeClick(true)
some times i hope you can include more information for every functions that you listed.
I read through some threads, and you have given out some good solution and on how to use them for other users. I wish you have added to the guide as well.
|
|