|
Post by paladiex on Dec 8, 2016 16:28:19 GMT
There is space in the file path. Is there any other path without space? Nope
|
|
|
Post by AnkuLua on Dec 9, 2016 0:30:33 GMT
What's your device?
There should be path like /storage/sdcard0 or /storage/sdcard1
If there is not try this one
command = "tools\\adb -s " + device + " shell screencap -p \"/Internal storage/Pictures/tmp.png\"" os.system(command) command = "tools\\adb -s " + device + " pull \"/Internal storage/Pictures/tmp.png\" tmp.png 2> nul" os.system(command)
|
|
|
Post by paladiex on Dec 9, 2016 2:02:51 GMT
What's your device? There should be path like /storage/sdcard0 or /storage/sdcard1 If there is not try this one command = "tools\\adb -s " + device + " shell screencap -p \"/Internal storage/Pictures/tmp.png\"" os.system(command) command = "tools\\adb -s " + device + " pull \"/Internal storage/Pictures/tmp.png\" tmp.png 2> nul" os.system(command)
I will try it when I get home. I play on an lg g pad x 8 inch.
|
|
|
Post by paladiex on Dec 9, 2016 4:49:07 GMT
Active code page: 437 161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] Script terminated due to an exception 161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions]SyntaxError: ("mismatched input '' expecting DEDENT", ('C:\\remoteAKL\\pyLib\\remoteAKL.py', 94, 1, '\tcommand = "tools\\\\adb -s " + device + " shell screencap -p \\"/Internal storage/Pictures/tmp.png\\""\n'))
161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.ParserFacade.fixParseError(ParserFacade.java:92) 161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.ParserFacade.parse(ParserFacade.java:184) 161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.Py.compile_flags(Py.java:1731) 161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.__builtin__.execfile_flags(__builtin__.java:514) 161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225) 161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at com.android.monkeyrunner.ScriptRunner.run(ScriptRunner.java:116) 161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at com.android.monkeyrunner.MonkeyRunnerStarter.run(MonkeyRunnerStarter.java:77) 161208 22:48:50.696:S [main] [com.android.monkeyrunner.MonkeyRunnerOptions] at com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:189)
Edit 1: I've got it working on my Samsung Galaxy note 5, sucks I can't use the tablet for now but this will do.
|
|
|
Post by Zakun on Dec 12, 2016 21:14:33 GMT
I'm getting this when I run remoteAKL.bat, but have already replaced file with the one that has previously fixed this issue. Will try reinstalling as suggested as an alternate fix and report back. Running Windows 10 64bit, phone (Samsung Galaxy S6) is connected via USB.
Error:
C:\Users\Omega\Documents\AL Dev Resources\remoteAKL>remoteakl.bat
Active code page: 437
JVM is 64-bit
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] Script terminated due to an exception
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions]Traceback (most recent call last):
File "C:\Users\Omega\Documents\AL Dev Resources\remoteAKL\pyLib\remoteAKL.py", line 26, in <module>
java.lang.System.loadLibrary('opencv_java2410_x64')
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: C:\Users\Omega\Documents\AL Dev Resources\remoteAKL\opencv_java2410_x64.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.Py.JavaError(Py.java:495)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.Py.JavaError(Py.java:488)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyObject.__call__(PyObject.java:387)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyObject.__call__(PyObject.java:391)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.pycode._pyx0.f$0(C:\Users\Omega\Documents\AL Dev Resources\remoteAKL\pyLib\remoteAKL.py:300)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.pycode._pyx0.call_function(C:\Users\Omega\Documents\AL Dev Resources\remoteAKL\pyLib\remoteAKL.py)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyTableCode.call(PyTableCode.java:165)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyCode.call(PyCode.java:18)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.Py.runCode(Py.java:1275)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.__builtin__.execfile_flags(__builtin__.java:522)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at com.android.monkeyrunner.ScriptRunner.run(ScriptRunner.java:116)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at com.android.monkeyrunner.MonkeyRunnerStarter.run(MonkeyRunnerStarter.java:77)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:189)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions]Caused by: java.lang.UnsatisfiedLinkError: C:\Users\Omega\Documents\AL Dev Resources\remoteAKL\opencv_java2410_x64.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at java.lang.ClassLoader$NativeLibrary.load(Native Method)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at java.lang.ClassLoader.loadLibrary0(Unknown Source)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at java.lang.ClassLoader.loadLibrary(Unknown Source)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at java.lang.Runtime.loadLibrary0(Unknown Source)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at java.lang.System.loadLibrary(Unknown Source)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at java.lang.reflect.Method.invoke(Unknown Source)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
161212 16:21:09.253:S [MainThread] [com.android.monkeyrunner.MonkeyRunnerOptions] ... 13 more
|
|
evild
New Member
Posts: 12
|
Post by evild on Dec 16, 2016 16:51:11 GMT
EDIT 1: Does I need to cut the image I want from remoteAKL with MWSnap and thats it?
Where are the images ? or I need to use PC screenshot button ? This is the debug log so I think the screenshot was taken:
start taking screenshot
finish screenshot
start taking screenshot
finish screenshot
start taking screenshot
finish screenshot
start taking screenshot
finish screenshot
start taking screenshot
finish screenshot
start taking screenshot
|
|
|
Post by AnkuLua on Dec 17, 2016 0:23:00 GMT
Just use MWSnap to cut the image from remoteAKL. Put the cut images under the "image" directory. The "image" directory is just below the script you works on.
|
|
|
Post by vampiredbr9 on Dec 18, 2016 15:57:20 GMT
Would snipping tool be a viable option instead of MWSnap? With it, you can save .Png's, or would it distort the image?
Great work guys, keep it up!
|
|
|
Post by AnkuLua on Dec 18, 2016 23:23:46 GMT
The combination of remoteAKL and MWSnap is already very good.
|
|
|
Post by abobora on Dec 27, 2016 0:49:30 GMT
Where are the images being stored?
|
|
|
Post by AnkuLua on Dec 27, 2016 0:59:56 GMT
|
|
|
Post by paladiex on Dec 28, 2016 6:46:04 GMT
Tablets can be in a 16:9, 16:10, and 4:3 aspect ratio. Can I use this app to accurately change the aspect ratio?
|
|
|
Post by AnkuLua on Dec 28, 2016 13:01:21 GMT
No. Use emulator to change the aspect ratio.
|
|
|
Post by xxdxmhippiexx on Jan 1, 2017 15:28:26 GMT
Is there supposed to be a simple way to get a screenshot with this?..i found myself having to exit out of remoteAKL at just the right moment in order for it save the screenshot..maybe have a /snap imgName command so it don't constantly take new screenshots overwriting the old one?..Only takes a new screen shot on command..would be much simpler unless i am using this wrong. lol
|
|
|
Post by AutoBOT on Jan 1, 2017 16:55:03 GMT
Is there supposed to be a simple way to get a screenshot with this?..i found myself having to exit out of remoteAKL at just the right moment in order for it save the screenshot..maybe have a /snap imgName command so it don't constantly take new screenshots overwriting the old one?..Only takes a new screen shot on command..would be much simpler unless i am using this wrong. lol look at save() method, just use it with region and have a custom name by yourself
|
|