Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Program Not Responding

Posted on 1999-08-02
Medium Priority
Last Modified: 2010-04-30
I'd like my program to check whether my other Program is Not Responding
How can I do this ?
Question by:Smout
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 1528876
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)

Author Comment

ID: 1528877
does findwindow work on a not responding app ?

Accepted Solution

SiriusP earned 200 total points
ID: 1528878
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

Author Comment

ID: 1528879
tricky, but it works just fine, tnx

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question