As I dig deeper into all the crazy stuff Automagic is capable of, I started messing around with Control UI.
I have found one instance where I kindof "need" to do a "click & drag" input, but I don't see any way to do this in the current dev build.
Is emulation of such an input possible, and if so, can Automagic do that at the moment?
Control UI - Click & Drag?
Moderator: Martin
Re: Control UI - Click & Drag?
That's not possible using Control UI. Maybe you can simulate such input using a rooted device and action Execute Root Command: input swipe x1 y1 x2 y2 (input swipe 0 0 0 300 opens the notification drawer on a nexus 5). It depends on ROM version whether or not command input allows to simulate a swipe. To check this, execute the input-command without options and see the log and check the output of the command in the log.
You can find the coordinates on the screen by enabling option Pointer location in the developer settings of Android.
You can find the coordinates on the screen by enabling option Pointer location in the developer settings of Android.
Re: Control UI - Click & Drag?
Very interesting
It's sad, but my Android 4.0.4 have only input [text|keyevent]
Is there any other way to enter swipe or touch?
It's sad, but my Android 4.0.4 have only input [text|keyevent]
Is there any other way to enter swipe or touch?
Last edited by Nerey on 10 Apr 2014 05:13, edited 1 time in total.
Sorry for bad english, my native is russian.
-
- Posts: 5
- Joined: 20 Mar 2014 16:58
Re: Control UI - Click & Drag?
Martin, very interesting! I actually do indeed use rooted devices and I will try out this particular method ASAP. The flow I was working on is kindof hacky to begin with, so executing click-drags via root seems like par for the course.
Are the screen X/Y co-ordinates very device specific? I figured that would be the limiting factor in sharing such a flow.
Are the screen X/Y co-ordinates very device specific? I figured that would be the limiting factor in sharing such a flow.
Re: Control UI - Click & Drag?
The xy-coordinates are screen resolution specific. From developer settings enable pointer location option and you can get the exact coordinates.