Check if an application is waiting for user input


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Check if an application is waiting for user input

  1. #1
    Gerardo Gomez Guest

    Check if an application is waiting for user input


    Is there a function that can tell me if an Application sent a message that
    awaits user response?

    e.g.

    While Application 'A' is processing, an error is found, so it asks the user
    if he wants to continue or not, but the process runs at night and there is
    no one that can answer the message. I want to write a VB app that terminates
    application 'A' if it is awaiting that user response, and then initiate another
    application.

    Is this possible with the WIN32 API?

    Thanks in advance..

    Gerardo.

  2. #2
    Scott Stanaland Guest

    Re: Check if an application is waiting for user input

    Gerardo

    I've never used it but the WaitForInputIdle API function may do what you
    want.

    HTH

    Scott

    Gerardo Gomez <gerardog@iname.com> wrote in message
    news:39537ba6$1@news.devx.com...
    >
    > Is there a function that can tell me if an Application sent a message that
    > awaits user response?
    >
    > e.g.
    >
    > While Application 'A' is processing, an error is found, so it asks the

    user
    > if he wants to continue or not, but the process runs at night and there is
    > no one that can answer the message. I want to write a VB app that

    terminates
    > application 'A' if it is awaiting that user response, and then initiate

    another
    > application.
    >
    > Is this possible with the WIN32 API?
    >
    > Thanks in advance..
    >
    > Gerardo.




  3. #3
    Scott Stanaland Guest

    Re: Check if an application is waiting for user input

    Gerardo

    I've never used it but the WaitForInputIdle API function may do what you
    want.

    HTH

    Scott

    Gerardo Gomez <gerardog@iname.com> wrote in message
    news:39537ba6$1@news.devx.com...
    >
    > Is there a function that can tell me if an Application sent a message that
    > awaits user response?
    >
    > e.g.
    >
    > While Application 'A' is processing, an error is found, so it asks the

    user
    > if he wants to continue or not, but the process runs at night and there is
    > no one that can answer the message. I want to write a VB app that

    terminates
    > application 'A' if it is awaiting that user response, and then initiate

    another
    > application.
    >
    > Is this possible with the WIN32 API?
    >
    > Thanks in advance..
    >
    > Gerardo.




  4. #4
    Paul Clapham Guest

    Re: Check if an application is waiting for user input

    There are shareware programs that do that sort of thing... for example, if
    you know the window title and the message, these programs can "click on" the
    OK button for you. Yes, this is possible with the Win32 API but it might be
    easier to just spend the $25.

    Gerardo Gomez <gerardog@iname.com> wrote in message
    news:39537ba6$1@news.devx.com...
    >
    > Is there a function that can tell me if an Application sent a message that
    > awaits user response?
    >
    > e.g.
    >
    > While Application 'A' is processing, an error is found, so it asks the

    user
    > if he wants to continue or not, but the process runs at night and there is
    > no one that can answer the message. I want to write a VB app that

    terminates
    > application 'A' if it is awaiting that user response, and then initiate

    another
    > application.
    >
    > Is this possible with the WIN32 API?
    >
    > Thanks in advance..
    >
    > Gerardo.




  5. #5
    Paul Clapham Guest

    Re: Check if an application is waiting for user input

    There are shareware programs that do that sort of thing... for example, if
    you know the window title and the message, these programs can "click on" the
    OK button for you. Yes, this is possible with the Win32 API but it might be
    easier to just spend the $25.

    Gerardo Gomez <gerardog@iname.com> wrote in message
    news:39537ba6$1@news.devx.com...
    >
    > Is there a function that can tell me if an Application sent a message that
    > awaits user response?
    >
    > e.g.
    >
    > While Application 'A' is processing, an error is found, so it asks the

    user
    > if he wants to continue or not, but the process runs at night and there is
    > no one that can answer the message. I want to write a VB app that

    terminates
    > application 'A' if it is awaiting that user response, and then initiate

    another
    > application.
    >
    > Is this possible with the WIN32 API?
    >
    > Thanks in advance..
    >
    > Gerardo.




  6. #6
    Gerardo Gomez Guest

    Re: Check if an application is waiting for user input


    Paul, thanks for your advise. I might be better off buying the program. Do
    you know where can I find such thing? Do you know any program names that
    can solve my problem?

    Tanks' again

    Gerardo.


    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >There are shareware programs that do that sort of thing... for example,

    if
    >you know the window title and the message, these programs can "click on"

    the
    >OK button for you. Yes, this is possible with the Win32 API but it might

    be
    >easier to just spend the $25.
    >
    >Gerardo Gomez <gerardog@iname.com> wrote in message
    >news:39537ba6$1@news.devx.com...
    >>
    >> Is there a function that can tell me if an Application sent a message

    that
    >> awaits user response?
    >>
    >> e.g.
    >>
    >> While Application 'A' is processing, an error is found, so it asks the

    >user
    >> if he wants to continue or not, but the process runs at night and there

    is
    >> no one that can answer the message. I want to write a VB app that

    >terminates
    >> application 'A' if it is awaiting that user response, and then initiate

    >another
    >> application.
    >>
    >> Is this possible with the WIN32 API?
    >>
    >> Thanks in advance..
    >>
    >> Gerardo.

    >
    >



  7. #7
    Gerardo Gomez Guest

    Re: Check if an application is waiting for user input


    Paul, thanks for your advise. I might be better off buying the program. Do
    you know where can I find such thing? Do you know any program names that
    can solve my problem?

    Tanks' again

    Gerardo.


    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >There are shareware programs that do that sort of thing... for example,

    if
    >you know the window title and the message, these programs can "click on"

    the
    >OK button for you. Yes, this is possible with the Win32 API but it might

    be
    >easier to just spend the $25.
    >
    >Gerardo Gomez <gerardog@iname.com> wrote in message
    >news:39537ba6$1@news.devx.com...
    >>
    >> Is there a function that can tell me if an Application sent a message

    that
    >> awaits user response?
    >>
    >> e.g.
    >>
    >> While Application 'A' is processing, an error is found, so it asks the

    >user
    >> if he wants to continue or not, but the process runs at night and there

    is
    >> no one that can answer the message. I want to write a VB app that

    >terminates
    >> application 'A' if it is awaiting that user response, and then initiate

    >another
    >> application.
    >>
    >> Is this possible with the WIN32 API?
    >>
    >> Thanks in advance..
    >>
    >> Gerardo.

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center