CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Window Handle queries
Hi - can anyone help me with the following window handle problems:
I'm writing a small app to work with a 4GL scripting tool that needs to
get the window handle of the window that is active when the WinExec()
call is issued to run the app, and can't find a way to do so. My app
needs to send keystrokes to the window that it is called from, and I
have got the SendKeys VCL from http://www.fredsterware.com which will do
what I want, but I need to grab the window handle to do so. I can't
just pass the window title as it is an MDI application and there could
be a number of windows open with the same title. I also can't use the
current window because once the app has started, the focus is set to the
main form of my app - not to the window it's called from.
2) In the same vein, I need to send a WM_CLOSE message to the window
from which the app is called - GetWindow() and its relatives have ways
of getting child and parent window handles, but I can't seem to find a
function to return the current window handle - or am I missing something
here?
Any help is much appreciated.
Shane Hastie
AMS Pacific Ltd
255a Manly St, Paraparaumu Beach, New Zealand
mailto:shastie@kapiti.co.nz
W Komornicki's Home Page |
Main Index |
Thread Index