• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

Program Not Responding

I'd like my program to check whether my other Program is Not Responding
How can I do this ?
  • 2
1 Solution
You could send a message to it, and see if it responds.

How to do that? (slightly trickier)

1. Save the hWnd property of your main window in the registry.
2. use SendMessage(hWnd, <Some message>,0,0)
3. get it to send a message back.

I'm afraid I don't actually know how to do this, but I know it is possible (which is why this is a comment rather than an answer)
SmoutAuthor Commented:
does findwindow work on a not responding app ?
try an use a ping
let one program send a message ie
SendMessage(prog, WM_KEYUP, 0, 0)

and in the other you use form_keyup() with a timer
SmoutAuthor Commented:
tricky, but it works just fine, tnx
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now