How do I get the name of the frontmost window?

Hey Adam,

No.

Keyboard Maestro doesn't see all possible window types.

I have several tools on the forum to help analyzing windows for use with Keyboard Maestro and/or System Events.

See this one:

List Windows Keyboard Maestro Can See v1.1

For what you're doing the Pause Until action is probably the most simple and efficient method, although it can be done with AppleScript and UI-Scripting.

-Chris