Add a context where the state of the screen is off.This does work when the phone is locked and the screen is off, but it also works when the phone is unlocked and the screen is on (ie. every time you open the keyboard it'll open the messaging app). I don't want that. I want it to ONLY work when the phone is locked and the screen is off. Any ideas on how to make that work?I haven't looked at the wiki, but I was able to get this to work by simply usingOpen 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.
State -> Keyboard Out
Display -> Keyguard -> Off
App -> Load App -> Messaging
No variables needed. Works when the phone is locked and screen off.