If KM can't "see" the window, it can't manipulate it.
Your only hope is AppleScript. See:
For more information, see the wiki Searching the Forum for Answers section.