KM insert text action for password variable not working

I am using macOS 26.1 with KM 11.0.4. I have a macro for logging into my online bank account. It was working, but now it doesn’t. Attached is a screenshot of the action that is supposed to insert my password from a variable by pasting. I have checked the variable and it contains the correct password. One thing I haven’t seen before is when I control-click to “try” the action, the contextual menu no longer gives me the the option to “try” the action, as it did before I started having this problem. Also, if I click the “try” button at the bottom of the KM edit screen, it simply adds a paste action below the insert text action, which is not helpful.

Is there possibly some new security restriction, either in KM or macOS 26.1 I need to be aware of? I have given KM and KM Engine all the access privileges I can think of in System Settings, including Full Disk access and Accessibility.

I'm leery about helping people do that, since storing your bank password in a KM macro could place your bank account at risk. But for all I know maybe it's a bank account with under $10 in it, and a fake name on the account, so I'm willing to give a little advice.

But you didn't say which app this action is supposed to insert text into (a browser? which browser? which website? which page? which field?) In any case, insert by typing is probably a little more reliable than insert by pasting, so try that.

That's odd. I have NEVER seen a "Try" menu item appear when I bring up the contextual menu for that action. The reason "there is no try" (apologies to Yoda there) is that it's impossible for that action to do anything useful when you "try" it since the KM Editor is always the active application when you use the mouse to "try" a KM action.

That only happens (to me) when I press the Record button first. Is that what you did? If that's what you did, then that would be a mistake.

P.S. My Yoda joke should get me upvotes on this post.

1 Like

More likely the web site -- many will block Pasting into "special" form fields, particularly password fields. Can you Paste manually?

I think @Airy's got you covered with:

...but:

Is a little worrying -- that's suggests that one of your Macro's Actions, or one of the selected Actions if you have a selection active, is Pasting in the XML of an "Insert Text" Action. But it may simply be that you've a standard "Paste" action in your macro and the System Clipboard just happens to contain that XML.

Instead of the button at the bottom, try the Action's "View" from the cog-wheel menu -- that'll pop a "Display Text" in an attempt to show what will be pasted (or typed).

It would be possible—although not necessarily advisable—to use a Set Variable to Keychain Password action.

1 Like

It does not make sense to “Try” an Insert Text by Pasting action because where would it be pasted - the action is currently selected and pasting in text will not be sensible.

So such actions instead have an offer to View the result.

If the clipboard has the correct value after the action, then the likely cause is the web site blocking Paste. Some websites disallow pasting in to such fields as some sort of security measure (which, in the case of having a password for a banking site in the clipboard is not entirely unreasonable).

Use a web extension like StopTheMadness to disallow web sites from blocking normal behaviour like pasting.

Or use the Insert Text by Typing action (although with the caveatthat the hot key used should not include any characters from your password)

Insert text by ‘typing’ may work.

1 Like

Insert text by typing works. Thanks a lot.

1 Like