Native Method to get Foreground App
There is currently no built-in action to get the foreground app name and package. The %WIN variable is inaccurate and often empty, making it unsuitable.
I know this can be done with AutoInput, but a native action for this would be very useful, especially in kid apps.