Keyboard macro to type password in an Apple Password window doesn't work

I had an issue with typing in passwords over VNC which might help.

I trigger the macro from the the Status Menu.