|
-
Aug 7th, 2002, 12:20 AM
#1
Thread Starter
New Member
Simple SendMessage prob or killing a window
Ok i am writing a script that basically terminates a program and restarts it anyway the problem is i cannot terminate it. I have tried:
SendMessage lhwnd, &H2, 0, 0
where lhwnd is the hwnd of the window and in theory H2 should be the correct hex for WM_DESTROY but that doesnt work. It gets the right hwnd and the program does respond since if i do:
SendMessage lhwnd, &H10, 0, 0
(H10 being WM_CLOSE which is a weaker form of destroy) it prompts me if i want to exit while connected. Anyway it works if i do it in C++ but unfortunately their are parts of this app that would be a ***** to do in C++ anyway any suggestions or better ways to kill a window
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|