lock keyboard switcher?

Post your questions and help other users.

Moderator: Martin

Post Reply
evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

lock keyboard switcher?

Post by evebrea » 30 Sep 2014 15:13

I managed to make a flow to lock automagic with a password/keycode...

now i would like to apply this same system to the "input select" popup. quite often my phone lags when i hit space, and it takes it as a long hold, and pops up the keyboard select overlay, which then ends up with my trying to type, and selecting a gaming keyboard... and usually said keyboard doesn't let me simply switch back with the keyboard select notification.

so i'd like to have automagic SEE that popup, and ask me for a passcode instead, then if not supplied, close said popup(kill app process?) if possible.

Can someone point me to what i'm looking for?

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

Re: lock keyboard switcher?

Post by Martin » 01 Oct 2014 09:54

Hi,

You could use trigger UI Event to execute your flow when the popup is displayed. On stock Android following settings should work:
Event Type: Window opened
Package Name: android
contains text: Choose input method

You could use action Control UI to send a back key with script back(); or an action Close System Dialogs to close the popup. Depending on the way you are showing the passcode window, you might have to disable the flow with trigger UI Event while you are displaying and handling the passcode so that your flow is not executed again when your passcode window is hidden and the input method popup is displayed again.

Trigger UI Event uses the accessibility service to detect such windows which is slightly delayed so the trigger might not work good enough when you are typing very fast.

Regards,
Martin

Post Reply