Solved

VB3 MSGBOX Detection with API

Posted on 1997-06-16
4
424 Views
Last Modified: 2008-03-10
I need code for VB3 standard (16-bit) API functions to detect when a message box pops up on the screen.  Either from the vb app or from another app or windows in general.  I also need to be able to get the text from the message box and store it as a string and also send a keypress to the msgbox to close it automatically.
0
Comment
Question by:ChrisK
[X]
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
4 Comments
 
LVL 3

Expert Comment

by:rmichels
ID: 1427326
Are you looking for a specific message box, or any message box?  Are you looking for a specific period in time, or just waiting forever and sending keys to the message box.  The reason I ask, is if you are just trying to generically close down any message box that pops up, I don't think you can do that. But, if you are initiating a specific task that will pop-up a message box AND you know the message box title (or range of titles), you can run through the desktop windows (EnumChildWindows is the API).
0
 
LVL 2

Author Comment

by:ChrisK
ID: 1427327
I'm trying to detect system errors...like GPF's or out of virtual memory...stuff like that, and be able to retrieve the message in the message box and then close the message box automatically...am I trying the impossible?
0
 
LVL 5

Accepted Solution

by:
y96andha earned 20 total points
ID: 1427328
That is impossible. Message boxes that indicate severe errors are system modal, and while they are active, no other applications can run.
0
 
LVL 2

Author Comment

by:ChrisK
ID: 1427329
That's what I was afraid of...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

739 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