Make Changes To Your System Password

Apologies if this is simple but I'm trying to figure out a way for my computer to launch a macro when one of these windows pops up asking if I'd like (Insert name of App) to make changes. It would have to be a found image condition I'd imagine and I have a macro that when I see this pop up, I use a hot key to trigger, but is there any type of trigger condition I can set that's constantly looking for this image so when/if it pops up, my password is automatically entered and the ok button is hit? Thanks!