I’m not using the same keystroke to invoke the macro; in RingCentral I use CTRL-OPT-CMD-D (it can be configured for anything one wants to use), and for the macro I use F2.
Unfortunately, none your ideas can be used here; the button that needs to be clicked is not named, it has no key-equivalent, and the window’s name doesn’t change between the 2 different views. That’s why I was forced to use pauses in order to allow RingCentral’s mediocre application to do what it needs to do.
If RingCentral would simply add a DIAL menu option, none of this would be necessary.