Page 1 of 1

Virtully push a button in a app

Posted: 23 May 2013 14:44
by fiets
Hi,

Is it possible to open an app and then push a button on the screen of that app (all virtually of course).
This way i can start an app en answer the first question of that app (like turn on GPS yes button /no button)

thanks...

Re: Virtully push a button in a app

Posted: 23 May 2013 17:15
by pat2net
Yes. With the condition "confirm dialog". You can see an exemple here:

http://automagic4android.com/flow.php?i ... 501c4c4c45

Re: Virtully push a button in a app

Posted: 24 May 2013 20:06
by fiets
Thanks for your repley.

This is not what I mean.

I don't want to ask a question on the screen but I want automagic anwer a question on the screen which is put there by an app that is statted.

Thanks in advance

Re: Virtully push a button in a app

Posted: 24 May 2013 20:27
by MURTUMA
There is that action that simulates touches on screen. That might be one solution but it works only on 4.x and up. I can't give you any further advice because I have only gingerbread.

Re: Virtully push a button in a app

Posted: 25 May 2013 07:52
by fiets
Hi,

That is exactly what I mean. But I can't find it as an activity.
Does it exist?

Thanks in advance.

Re: Virtully push a button in a app

Posted: 25 May 2013 09:26
by pat2net
The action is "control UI" but i can't try it either (gingerbread). If it work could you tell me because a friend want me to help him do something like that.

Re: Virtully push a button in a app

Posted: 26 May 2013 07:35
by Martin
Hi,

Older devices require root to press buttons and to enter text.

See following posts as a starting point for rooted devices:
http://automagic4android.com/forum/view ... f=5&t=1825 especially the command "input keyevent" and the DPAD events.
and
http://automagic4android.com/forum/view ... =tap#p2437 (input tap probably requires Android 4.1)

Not all commands work on all Android devices/version but "input keyevent" seems to be available on most devices.

Regards,
Martin