|
Post by zenkrye on Aug 29, 2016 20:28:59 GMT
I am new to scripting with Lua and AnkuLua. I have tested my script and everything runs up to the point when it needs to find a matching imaging then it fails. Maybe I missed it in the documentation but I am looking for a little help on sizing the captured images.
My phone is a Samsung Galaxy S5 with a screen resolution of 1080x1920. My laptop also has a screen resolution of 1080x1920. I use Samsun SideSync to mirror my phone to the PC and SnagIt to capture the image I want from SideSync.
Is there a easy way to test the image to see if the application is finding it?
|
|
|
Post by AnkuLua on Aug 31, 2016 0:23:58 GMT
Normally, it's because compareDimension. Email your script and screenshot to ankulua@gmail.com We will help you.
|
|
|
Post by doohie on Sept 18, 2016 4:25:07 GMT
Hi, I'm having the exact same issue. I've run several scripts that fellow users posted without issue, but when I try to create my own using pictures I take it just fails. Same resolution as Zenkrye (using getAppUsableScreenSize() ), its absolutely related to compareDimension and setScriptDimension as when I change this and the image sizes sometimes it works, but it just doesn't make sense. Any help regarding this would be much appreciated. Regards,
|
|
|
Post by AnkuLua on Sept 18, 2016 5:58:37 GMT
Post the screenshot, script and comparing image. Then we can help.
|
|
|
Post by zenkrye on Nov 3, 2016 19:46:53 GMT
I was able to solve my issue with re-reading the compare dimension section in the help files. I was able to make it work easy using Memu emulator. I was able to make it work on my Samsung S5 but it is strange. I am using Samsung SideSync to mirror the phone to my PC for capturing the pictures but for some reason when I try to run the script from SideSync it fails to find the image. If I disconnect from SideSync it runs fine on the native phone. It makes debugging a little harder but it is workable.
With the autoresize function, I should be able to take an image from a capture with a width of 647 and convert it to a resolution for a phone setting to 1196?
|
|
|
Post by AnkuLua on Nov 4, 2016 0:23:05 GMT
|
|