Hi all,
I had the same problem. To resolve I changed the Windows registry value of:
FOREGROUNDLOCKTIMEOUT
located at
HKEY_CURRENT_USER\CONTROL PANEL\DESKTOP
from
30D40 (Hexadecimal) or 200000 (Decimal)
to
0
Rebooted my machine and the macro buttons now open applications in focus in the foreground.
Further details of this problem at the below thread:
https://windowsforum.com/threads/new-windows-open-behind-existing-windows.91026/
Thank you and I hope this helps someone.