Non root Keyboard set

Post your questions and help other users.

Moderator: Martin

Post Reply
RKPHayes
Posts: 2
Joined: 26 Mar 2014 01:16

Non root Keyboard set

Post by RKPHayes » 26 Mar 2014 01:40

I would like to change my keyboard input to Car Keyboard when the AppRadio app is activated and back to Samsung keyboard when the app is closed. I have a Note 3, non rooted AT&T. I have seen a post that it was going to be added but I cannot find the action for a non root. Please advise

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

Re: Non root Keyboard set

Post by Martin » 26 Mar 2014 17:58

Hi,

You could use an action Show Input Method Selector to show the keyboard selection and then wait for a short duration (1 second) and simulate input with action Control UI: click("KeyboardXYZ").

Flows could look like this:
Flow 1:
-trigger App Task Started: AppRadio
-action Show Input Method Selector
-action Sleep: 1s
-action Control UI: click("*Car*")

Flow 2:
-trigger App Task Ended: AppRadio
-action Show Input Method Selector
-action Sleep: 1s
-action Control UI: click("Samsung keyboard")

The exact name of the keyboard should be passed to the click action of Control UI otherwise Automagic can not find the correct one.

Regards,
Martin

RKPHayes
Posts: 2
Joined: 26 Mar 2014 01:16

Re: Non root Keyboard set

Post by RKPHayes » 27 Mar 2014 12:00

The app itself starts on boot, there is a notification on the status bar which shows one Icon for disconnected and another for connected. I found something to trigger when the main app is on the status bar, but no way of discerning on whether connected or disconnected. Is there a way of triggering on the status of the notification ie connectednor disconnected?

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

Re: Non root Keyboard set

Post by Martin » 27 Mar 2014 17:16

Trigger Notification on Statusbar Displayed passes variables title and notification_text to the executed flow which could be used to distinguish between the two cases. notification_text is not officially supported and might not work with all notifications.
Following condition could be used:
-trigger Notification on Statusbar Displayed
-condition Expression: contains(title, "connected")
-->true: -action when connected
-->false: -action when not connected

Post Reply