Results 1 to 3 of 3

Thread: post MSg

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Montreal
    Posts
    17
    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

  2. #2
    Guest
    This may not be the best way, but you can just use the SendKeys and select "no"

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width