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