G
GeorgeMar
I have a function that closes a window if that window is opened. I use the
APIs FindWindow and PostMessage. To use FindWindow, you need to know the
Window Title. That usually works fine.
On the odd, occasion, the user will maximise the screen and the title
changes. The new title is a concatenation of the Application Window Title
and the Report name in brackets[]. This concatenation is dynamic and
therefore impossible to predict.
Is there a way to close the application by finding any window title that
contacts the first part of the concatenated title. e.g if the application
title is the first 10 chars of the whoe title, that will be consistent. Thus,
search on the first 10 chars only.
many thanks
george
APIs FindWindow and PostMessage. To use FindWindow, you need to know the
Window Title. That usually works fine.
On the odd, occasion, the user will maximise the screen and the title
changes. The new title is a concatenation of the Application Window Title
and the Report name in brackets[]. This concatenation is dynamic and
therefore impossible to predict.
Is there a way to close the application by finding any window title that
contacts the first part of the concatenated title. e.g if the application
title is the first 10 chars of the whoe title, that will be consistent. Thus,
search on the first 10 chars only.
many thanks
george