Soft keyboard status

Post your questions and help other users.

Moderator: Martin

Post Reply
Mucatigoa
Posts: 5
Joined: 09 Nov 2014 17:30

Soft keyboard status

Post by Mucatigoa » 03 Jan 2015 05:56

Is it possible to get the soft keyboard open status?

I found Window Opened but it wants text, and text displayed on the keyboard did not work (q,ctrl,english).

Condition 'app process running' with kl.ime.oh (my keyboard) shows always running, so not a way to see if it's open.
Condition 'app task running' is not set when open/closed.

Maybe a variable?

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

Re: Soft keyboard status

Post by Martin » 05 Jan 2015 19:32

Hi,

Some versions of Android show a notification on the statusbar when the keyboard is open. You could try to detect this notification with a trigger Notification on Statusbar Displayed/Removed.
Alternatively you could use trigger UI Event with event type Window opened and the package name of the keyboard to see if you can catch it this way. Trigger UI Event can sometimes miss events so it will probably not be the most reliable way.

Regards,
Martin

Mucatigoa
Posts: 5
Joined: 09 Nov 2014 17:30

Re: Soft keyboard status

Post by Mucatigoa » 06 Jan 2015 04:20

What about screen size, maybe something related to the screen dimensions?

The main activity for multiling O is always running, not sure how to tell by the package...

Due to the nature of AM, shouldn't this be a basic function? Automation needs to know what is going on.

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

Re: Soft keyboard status

Post by Martin » 06 Jan 2015 21:19

I'm not aware of a possibility for a background service to get notified about this event other than using the notification or the UI event.

Post Reply