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

I have a Keyboard macros (F1 key and Option F1) to type my user account password and Apple ID Password in password windows (both user account and Apple ID) that doesn't work. If I type the hot key like F1 a second time it works. It started happening with Sequoia and maybe Ventura. I'm currently running 15.3.

I've tried Insert Text, Paste Text and Simulate Keystroke (one for each character).

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

I trigger the macro from the the Status Menu.

It is stating the obvious, but having a macro store your Mac user password in plain text is not a good idea...

A modicum level of security is to leverage the Mac's keychain using Keyboard Maestro. There is a Keyboard Maestro dedicated Action to write something to the Keychain

And there is another dedicated Action to retrieve that information.

By setting a Local Variable at least this way the password is not stored in plain text on your Mac and will be deleted after the Macro has run.

As to why you are not able to type or paste into password fields, I have noticed that Sequoia seems to have made that more diffcult.

Thanks for the suggestion but to get access to my text they would have to break into my home to get fiscal access to my iMac. Then they would need me to log in to my user account with a gun to my head. At that point my only concern would be staying alive!

It's good to know that Sequoia seams to be having problems with passwords. Apple what's going on?

It looks like Sequoia is blocking Option-Letter hot keys in password fields. But function keys seem to be fine.

If nothing is happening when you press the key, then check if the macro is triggering.

I’m using a function key ie F15. The second press of F15 works. In some cases the first press works but not very often.

In your first post you said "F1 key and Option F1" now you are saying "F15" without the option. So did you change something or do we not understand what you are doing?

I meant F1 for one password and option F1 for another password. Sorry mind was on work issue.

Okay. In that case, did you understand the solution that Peter offered? He said Sequoia now prohibits the use of "Option" as a hotkey modifier in a password field. So did you change the hotkey to a permissible hotkey? That should fix your problem. It's that simple.

I didn’t change the option one yet because I can’t get the F1 only to work yet. I’ll change the option one to F2 and give it a try though I don’t use that one very often.

Now I'm starting to understand. You weren't really worried about the second one, only the first one. Yet because you mentioned it, we thought that was part of the problem.

If you are still having problems with it, you may want to post either a screenshot of the login prompt you are struggling with or a screenshot of the macro that isn't working (but don't who use your password) or maybe even both. Sometimes it's hard to give advice when we don't see what you are seeing.