-
Hello i have a Question about API
i what to Force to lcose a Program : i'v tryed this
PostMessage hwndName, WM_CLOSE Or EWX_FORCE, 0&, 0&
and This :
PostMessage hwndName, WM_CLOSE, 0&, 0&
but i can't,
for example : i what to close Notepad and i have the Hwnd, but when
i write something in it and use PostMessage to close the prog
it ask me if what to to Save it i don't what that !!
i whatt close iT
i with out the blablab.... any idea ?
tjhank's
-
This may not be the best way, but you can just use the SendKeys and select "no"
-
SendKeys
Hi Megatron, can you show us on using SendKeys to close an external applcaition. becasue all the time I was using the SendMessage API function to do it. :(