trigger when keyboard pops up

Post your questions and help other users.

Moderator: Martin

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

Re: trigger when keyboard pops up

Post by Martin » 25 May 2017 18:49

Hi,

It seems that this phone does not have a hardware keyboard at all. Or is there an axon mini variant that has a hardware keyboard like the blackberry priv?

Regards,
Martin

LED
Posts: 45
Joined: 28 Jun 2014 00:51

Re: trigger when keyboard pops up

Post by LED » 26 May 2017 14:32

Sorry martin I misinterpreted the trigger then.
yes my phone is just a normal full touch screen one.

What I really needed was a trigger called "soft keyboard state/type" but If I remember you said you have no means to detect it for some reason.

Thanks a lot anyway

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: trigger when keyboard pops up

Post by akhileshg1988 » 09 Jun 2017 10:13

Martin wrote:Hi,

You could try to use trigger UI Event to trigger on all Window opened events of all packages (set package name to *). You probably have to use a condition Expression to check some of the provided variables to see if it's the keyboard or any other window, which indicates that the keyboard was closed.

Regards,
Martin
Seems, I've found out a way to detect the opening of soft keyboard.
Trigger:- "UI Event", Event Type: "Window opened", Package Name: "com.android.inputmethod.latin" (or whatever is the name of the package of the soft keyboard that you're using on your phone).
Condition:- "Expression", source_class_name=="android.inputmethodservice.SoftInputWindow";
If this condition is true, it means that soft keyboard has just popped up.

LED
Posts: 45
Joined: 28 Jun 2014 00:51

Re: trigger when keyboard pops up

Post by LED » 11 Jun 2017 15:35

thanks for the suggestion, but the UI event trigger pointing to gboard doesn't kick in at all.
the only way to kick windo open event is if I leave * on the package name, and this means running the flow every second while using the phone. I prefer to avoid this excessive triggering at all.

thanks again

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: trigger when keyboard pops up

Post by akhileshg1988 » 12 Jun 2017 04:53

LED wrote:thanks for the suggestion, but the UI event trigger pointing to gboard doesn't kick in at all.
the only way to kick windo open event is if I leave * on the package name, and this means running the flow every second while using the phone. I prefer to avoid this excessive triggering at all.

thanks again
Hey
May I know what flow are you trying to design using the trigger "Keyboard Pops Up"?

Thanks

LED
Posts: 45
Joined: 28 Jun 2014 00:51

Re: trigger when keyboard pops up

Post by LED » 12 Jun 2017 10:33

I cant send you the flow because it is totally interconnected with many others.

However the purpose of it, is to detect the keyboard opened, then show a few overlay widgets with the buttons copy,paste, select all while I type.
this means that I can select all avoiding having to long click the text at all. really handy for many reasons. one of them is that some text fields are unselectable, but automagic is so powerful that is simply does the job anyway.

But for now, the flow doesn't matter, I can test with an nearly empty flow, just the trigger and, lets say, a sound to check the flow ran. But it seems impossible the way I wanted to.

Regards

akhileshg1988
Posts: 109
Joined: 16 Apr 2014 04:57

Re: trigger when keyboard pops up

Post by akhileshg1988 » 13 Jun 2017 02:07

If you don't mind, you could send me the flows and I could try my hand at improving them. In order to send all the interconnected flows, first select all the flows (by long pressing on each, of course). Next go to the options menu in Automagic and select "Send Flows/Widgets". On the next pop up menu, select "Store As File" and finally store that file in your sdcard.
This way a single .xml file will be generated that contains all the flows you had selected. Send me that file and I'll try some workaround.

Post Reply