Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to perfectly match a window title with SendKeysTo

Keywords:   window title tilde SendKeysTo

Question:

Is it possible to force a match on an entire window name rather than using the partial window names in a function like SendKeysTo()?
I have a program called Ecco that I want to send keystrokes to, and it has one window called "Ecco" and another window called "Ecco Shooter". I can't seem to properly control which window gets the keystrokes.

Answer:

Yes. Just put a tilde at the end of the line to force a perfect match. Like:
SendKeyTo("Ecco~","sendkeystring")

Article ID:   W13827
Filename:   Perfectly match a window title.txt