How can I trigger a macro when the firewall alert deny/allow is shown?


I'm wondering if there is a way to trigger a macro when the system firewall alert pops up:

I can't disable the firewall. It happens every single time I run my automated tests (because it has a totally safe local http server). I want to make a macro to auto-allow it.

Any ideas?

What you could try is to use an Application Trigger, if it detects the app idk don’t have any to test it with. Then simply use the “Press a Button” action to press “Allow”.
Else you could just assign a hotkey to the “Press a Button” action. Then you don’t have to move the mouse all the time.