On Apr 27, 2015 12:39 PM, "AJ" <sj7...@gmail.com> wrote:
> Is it possible to change the keyboard (Swiftkey) language from Tasker?
You can do it with the Autoinput plug-in. As an example, this task will toggle Polski (downloading it if necessary):
Test (30)
A1: Launch App [ App:SwiftKey Keyboard Data: Exclude From Recent Apps:Off ]
A2: AutoInput Action [ Configuration:Type: Text
Value: Languages
Action : Click Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
<Select>
A3: AutoInput Action [ Configuration:Type: Text
Value: Polski
Action : Click
Timeout: 1 Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 Continue Task After Error:On ]
A4: Goto [ Type:Action Label Number:1 Label:End ] If [ %err !Set ]
A5: AutoInput Action [ Configuration:Type: Focus
Action : Scroll Forward Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
A6: Goto [ Type:Action Label Number:1 Label:Select ]
<End>
A7: AutoInput Global Action [ Configuration:Action: Back Package:com.joaomgcd.autoinput Name:AutoInput Global Action Timeout (Seconds):20 ]
A8: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A9: AutoInput Global Action [ Configuration:Action: Back Package:com.joaomgcd.autoinput Name:AutoInput Global Action Timeout (Seconds):20 ]
Unfortunately, SwiftKey does not expose any API that would allow you to do that.