Home All Groups Group Topic Archive Search About

Automagically answering another program's dialog

Author
22 Apr 2006 4:17 PM
Joseph Sheppard
We have a pesky dialog box that appears on our Ascent Capture server 50
times a day, bottle-necking our release process.

While we wait for a corrected .dll to prevent this dialog, I would like to
write a program that automatically answers it (the dialog has one choice
only: VBOK).

I remember reading a couple of years ago that .Net (hopefully vb.net) could
do such a thing...If this is the case, I've been googling for the wrong
terms, for twenty minutes of searching has led me to one shareware program,
and no programming advice.

Please point me in the right direction....

TIA!

Joseph

Author
22 Apr 2006 8:35 PM
Spam Catcher
Show quote Hide quote
"Joseph Sheppard" <josephsheppard@"gee"mail.com> wrote in
news:xIGdnQoG0IbZytfZnZ2dnUVZ_tydnZ2d@pgtc.com:

> We have a pesky dialog box that appears on our Ascent Capture server
> 50 times a day, bottle-necking our release process.
>
> While we wait for a corrected .dll to prevent this dialog, I would
> like to write a program that automatically answers it (the dialog has
> one choice only: VBOK).
>
> I remember reading a couple of years ago that .Net (hopefully vb.net)
> could do such a thing...If this is the case, I've been googling for
> the wrong terms, for twenty minutes of searching has led me to one
> shareware program, and no programming advice.


Definately possible - but you'll need to hook into Windows APIs.

Take a look at SendMessageA & FindWindow functions.

Another possiblity is to use .NET's SendKeys function - this lets you send
keystrokes to the currently focused app.
Author
22 Apr 2006 11:50 PM
Joseph Sheppard
Thanks!

-Joseph

Show quoteHide quote
"Spam Catcher" <spamhoneypot@rogers.com> wrote in message
news:Xns97ADA8B863D66usenethoneypotrogers@127.0.0.1...
> "Joseph Sheppard" <josephsheppard@"gee"mail.com> wrote in
> news:xIGdnQoG0IbZytfZnZ2dnUVZ_tydnZ2d@pgtc.com:
>
> > We have a pesky dialog box that appears on our Ascent Capture server
> > 50 times a day, bottle-necking our release process.
> >
> > While we wait for a corrected .dll to prevent this dialog, I would
> > like to write a program that automatically answers it (the dialog has
> > one choice only: VBOK).
> >
> > I remember reading a couple of years ago that .Net (hopefully vb.net)
> > could do such a thing...If this is the case, I've been googling for
> > the wrong terms, for twenty minutes of searching has led me to one
> > shareware program, and no programming advice.
>
>
> Definately possible - but you'll need to hook into Windows APIs.
>
> Take a look at SendMessageA & FindWindow functions.
>
> Another possiblity is to use .NET's SendKeys function - this lets you send
> keystrokes to the currently focused app.
>
Author
18 May 2006 4:49 AM
dgershman
If you are interested in Ascent Capture development and expertise
contact sa***@issltd.com