Open the Keyboard and Start Texting - Tasker Wiki
Has anyone gotten this to work? This would seem like a rather simple function but I'm having trouble. The logic is that when %SCREEN is off and I open the keyboard, it should turn off the keyguard and open my messaging app. Well, installed as it's listed in the wiki, it doesn't do anything when I open the keyboard if the screen is off and the keyboard is closed.
So I thought maybe the %SCREEN variable gets set to on before the keyboard open event gets set, so I figured I could key this off the %KEYG variable. If the keyguard is on and I open the keyboard, I want it to turn the keyguard off and open my messaging app. That DOES work, but it seems to ignore the keyguard part of it and it opens the messaging app when I open the keyboard regardless of whether the keyguard was on or not.
I have a state profile that goes like this:
Keyboard Out ->
Variable Set Name %KBOUTMSG To on If %KEYG ~ on
Keyguard Set Off If %KBOUTMSG ~ on
Load App App Messaging If %KBOUTMSG ~ on
Variable Clear Name %KBOUTMSG
Obviously the issue is with the "If %KEYG ~on" condition -- it seems to ignore it and it sets %KBOUTMSG to 'on' regardless of keyguard state.