When online with a site that requires two-factor authentication, I submit my credentials and then wait for a six digit verification code to come back. It takes varying intervals before a verification code returns.
I have tried using the KM action "Pause Until Conditions are Met” using a "Pixel Condition” to determine the code has been returned. However, I can’t get the color of the pixel quite right. The item in my browser app that changes color when I get the verification code disappears before I can invoke the Color Picker to get a pixel color. I have tried the darker and lighter options in Pixel Condition, but without success.
Just wondering if there are other options in "Pause Until Conditions are Met” that you would recommend that can monitor when a verification code is returned and then allow the macro to proceed to the next action.
Have you tried (at an appropriate point) screenshotting everything with ⌃⇧⌘3, switching to Preview, ⌘N to make a new document from the System Clipboard contents, then using the Color Picker on that to get the value?
Otherwise, I don't quite understand the workflow. Usually the authentication code comes to something/somewhere else and you enter it on the site you are logging in to.
Can you change it to a different 2FA method -- for example, to use a one-time code from the Passwords app, 1Pass, Google Authenticator, or similar?
Yes! Pixel colour values can be slightly off from time to time, for reasons I'm not aware of, but using a Find Image condition can compensate for that problem. Also, using OCR can sometimes be even better, but since I can't see your screen, I can't confirm either of these methods will work.
But you still might be able to get the pixel test to work if you check that it's value is in a range rather than a specific number.