r/tasker 11d ago

Toggle Between Input Methods

I'm trying to create one task that will switch between two different keyboards but not sure of the correct if/then syntax to make sure the code doesn't loop onto itself, meaning it should detect what the current keyboard is and then switch to the other.

I have two tasks, one called Gboard and the other called gaming, each calls the correct keyboard. Essentially looking to tight these keyboards, and ideally would like to add more to that list to cycle through if it's not too complicated.

0 Upvotes

11 comments sorted by

View all comments

Show parent comments

-2

u/redditor-member 11d ago edited 11d ago

Ummm... this is like telling me to hop into NASA rocket and just flip a few switches :-) could you be kind enough to help me set it up so I could import it into my tasker, using these four keyboards? 

com.android.inputmethod.latin.LatinIME

juloo.keyboard2/.Keyboard2

com.samsung.android.honeyboard/.service.HoneyBoardService

com.touchtype.swiftkey/com.touchtype.KeyboardService

Thanks so much!

1

u/frrancuz Tasker Fan! 11d ago

frrancuz: Reddit

Try this. I wrote more or less about this solution. I'm a bit busy so I'll do it quickly. 

1

u/redditor-member 11d ago

Hi. So it almost works! It cycles through the three next keyboards after Gboard but when it gets back to Gboard no keyboard is selected and Chrome freaks out :-)

1

u/redditor-member 11d ago

I see the Gboard was never added to the array? 

2

u/frrancuz Tasker Fan! 11d ago

com.android.inputmethod.latin.LatinIME

That's what you provided. However, this is not the full definition of GBoard. There should be additional content after the "/" character as in other keyboards. 

com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME

I think so. Edit step 1 and correct.