Virtully push a button in a app

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
fiets
Posts: 19
Joined: 23 May 2013 11:06

Virtully push a button in a app

Post by fiets » 23 May 2013 14:44

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...

pat2net
Posts: 85
Joined: 01 May 2013 09:18

Re: Virtully push a button in a app

Post by pat2net » 23 May 2013 17:15

Yes. With the condition "confirm dialog". You can see an exemple here:

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

fiets
Posts: 19
Joined: 23 May 2013 11:06

Re: Virtully push a button in a app

Post by fiets » 24 May 2013 20:06

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

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Virtully push a button in a app

Post by MURTUMA » 24 May 2013 20:27

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.

fiets
Posts: 19
Joined: 23 May 2013 11:06

Re: Virtully push a button in a app

Post by fiets » 25 May 2013 07:52

Hi,

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

Thanks in advance.

pat2net
Posts: 85
Joined: 01 May 2013 09:18

Re: Virtully push a button in a app

Post by pat2net » 25 May 2013 09:26

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.

User avatar
Martin
Posts: 4430
Joined: 09 Nov 2012 14:23

Re: Virtully push a button in a app

Post by Martin » 26 May 2013 07:35

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

Post Reply