Auto close an info messagebox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
My application launch another application that open an info message box,
this application will wait until user click on the 'OK' button.

How can I click on this button automatically without bother the user ?
Any way to do that ?
 
Hi,
My application launch another application that open an info message box,
this application will wait until user click on the 'OK' button.

How can I click on this button automatically without bother the user ?
Any way to do that ?

You can create a small app that clicks the ok button in this message
box. You can use WIndows messeges for that.
 
Hi,

Hi,
My application launch another application that open an info message box,
this application will wait until user click on the 'OK' button.

How can I click on this button automatically without bother the user ?
Any way to do that ?

You would have to find the windows handle of that window and send it a
message. You can use FindWindow from the win32 API, and then later
SendMessage.

Before going to code I advise you to look into the archives, I suspect that
this has been answered before.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top