Oh!!! I figured out how to get this to work!!!
I set up a password lock, and instead of using AutoInput, I used Tasker's Type action to send the password unlock string. The unlock window accepted it!
I also have my device set up to accept the unlock string without any following "enter" command, which makes this even easier. My crDroid OS allows this option, and GravityBox offers this no-enter-needed-after-password-entry option, also.
Anyway, this solves a long-standing problem for me. I want to use Google Pay on my device, but I always want to use Swipe Lock. Google, in its infinite "wisdom" (ha ha!) periodically queries my device to see whether locking is enabled (password, PIN, or fingerprint locking). If not, it notifies my payment services (in my case, my banks because I use the banks' debit cards) that my device is unlocked, and my banks then disable my debit card from being usable under Google Pay. This has occurred for three different banks, as well as for PayPal when I tried it.
But by using this method that I just outlined, I can simulate Swipe Lock by detecting that my device is locked (via Logcat Entry), by detecting that the screen was swiped (also via Logcat Entry), and then by using Tasker's Type action to send the unlock string. And this way, Google Pay continues to see that my device is locked, and it then keeps my payment methods active.
I am very, very happy that Tasker offers Logcat Entry ! It's a great feature, and it has helped to solve a few recent issues for me!