Re: Input Method Change for Selected Apps (Get Current Input Method from %IMETHOD ??) *Using Secure Settings Plugin

606 views
Skip to first unread message

Pent

unread,
Aug 14, 2012, 12:52:21 PM8/14/12
to Tasker
Try exporting you task description (not XML) by long-clicking on it.
Vague human descriptions are very difficult to find problems with.

Pent

Chepoxxx

unread,
Aug 14, 2012, 1:16:59 PM8/14/12
to tas...@googlegroups.com
IN TASK:
Switch To SwiftKey (3)
A1: Variable Set [ Name:%CurrentIM To:%IMETHOD Do Maths:Off Append:Off ]
A2: Secure Settings [ Configuration:Input Method/SwiftKey 3 Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ]

EXIT TASK:
SwitchBack (4)
A1: Secure Settings [ Configuration:Input Method/Swype Beta Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ]
---

What I want to do is tell Secure Settings to go back to my variable %CurrentIM when I exit the applications. Right now its hard coded to go back to Swype.
So I have 2 issues. First I cannot get the long string of IMETHOD into my variable (tried flashing the contents and it shows %IMETHOD) next I need to find a way to tell Secure Settings to switch back to my initial input method stored un my %CurrentIM variable.



Pent

unread,
Aug 15, 2012, 2:09:48 AM8/15/12
to Tasker

> So I have 2 issues. First I cannot get the long string of IMETHOD into my
> variable (tried flashing the contents and it shows %IMETHOD)

Which Android version do you have ? This variable needs Android v3 or
higher.

> next I need to
> find a way to tell Secure Settings to switch back to my initial input
> method stored un my %CurrentIM variable

I don't know what format SS requires for that. You can use action
Variable Split to get
the different parts however.

Pent

Chepoxxx

unread,
Aug 15, 2012, 9:29:34 AM8/15/12
to tas...@googlegroups.com
First Part:
I am running v4.0.4 (AOKP) on a GS2 I9100. But, does the keyboard need to be displayed in order for %IMETHOD to contain something?


Second Part:
I guess I will try the second part of my question on a SS related forum. At a glance it looks like SS wont take any variables as input. Does anybody know of a workaround for this?

Pent

unread,
Aug 15, 2012, 10:59:24 AM8/15/12
to Tasker
> I am running v4.0.4 (AOKP) on a GS2 I9100. But, does the keyboard need to
> be displayed in order for %IMETHOD to contain something?

No.

Maybe it's a ROM problem, worked fine on my Nexus S with both 4.0.4
and now 4.1.

> I guess I will try the second part of my question on a SS related forum. At
> a glance it looks like SS wont take any variables as input. Does anybody
> know of a workaround for this?

The developer should be able to address that.

Pent

larryc

unread,
Aug 15, 2012, 2:05:31 PM8/15/12
to tas...@googlegroups.com

I am also experiencing intermittent problems with %IMETHOD updates.  My workaround is to override when the variable is unset.

Since I do not know what variable SecureSettings might use or how to pass it, I just use a lookup (if/else).

Using 1.3.2b1m on rooted ICS 4.0.4 (Moto Droid Bionic pre-release)

Larry
-------------------

AltKbd Set (64)
A1: Variable Set [ Name:%prevKbd To:%IMETHOD Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%prevKbd To:swype Do Maths:Off Append:Off ] If [ %IMETHOD ~ %IMETHOD ]
A3: Secure Settings [ Configuration:Input Method/Thumb Keyboard 4 Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ]

------------

AltKbd Undo (65)
A1: If [ %prevKbd ~ *swype* ]
A2: Secure Settings [ Configuration:Input Method/Swype Package:com.intangibleobject.

securesettings.plugin Name:Secure Settings ]
A3: Else If [ %prevKbd ~ *moto* ]
A4: Secure Settings [ Configuration:Input Method/Motorola Input Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ]
A5: Else If [ %prevKbd ~ *hacker* ]
A6: Secure Settings [ Configuration:Input Method/Hacker's Keyboard Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ]
A7: Else If [ %prevKbd ~ *thumb* ]
A8: Secure Settings [ Configuration:Input Method/Thumb Keyboard 4 Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ]
A9: End If
A10: Variable Clear [ Name:%prevKbd Pattern Matching:Off ]


@vncs1880

unread,
Apr 3, 2013, 1:53:14 PM4/3/13
to tas...@googlegroups.com
hello thanks for the tip
there's one thing left i don't get though: the input method does change as intended but doesn't persist after first usage(the input method reverts itself to the previously set).
my goal is to to make an action(and export as app) to toggle between 2 input methods, "aosp keyboard" and "voice input", but changes don't persist.
please help

here's what i have tried so far:

Voice Input (4)
A1: Variable Split [ Name:%IMETHOD Splitter:, Delete Base:Off ] 
A2: If [ %IMETHOD3 ~ voice ]
A4: Secure Settings [ Configuration:Input Method/Android keyboard (AOSP) Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ] 
A5: Else 
A7: Secure Settings [ Configuration:Input Method/Google Search Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ] 
A8: End If 

Rich D

unread,
Apr 3, 2013, 6:01:18 PM4/3/13
to tas...@googlegroups.com

> my goal is to to make an action(and export as app) to toggle between 2 input methods, "aosp keyboard" and "voice input", but changes don't persist.
> please help

Have you checked the run log to see if it is your task that is changing it back??  What context are you using??

Menu / more / run log..

Message has been deleted

@vncs1880

unread,
Apr 3, 2013, 6:45:50 PM4/3/13
to tas...@googlegroups.com
thanks
well i just run an anonymous action setting input method to voice through secure settings helper plugin.
it does work 1st time when i try to edit a text field but then goes back to keyboard.
all normal on run log.
Reply all
Reply to author
Forward
0 new messages