Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 430
  • Last Modified:

VB3 MSGBOX Detection with API

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
ChrisK
Asked:
ChrisK
  • 2
1 Solution
 
rmichelsCommented:
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
 
ChrisKAuthor Commented:
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
 
y96andhaCommented:
That is impossible. Message boxes that indicate severe errors are system modal, and while they are active, no other applications can run.
0
 
ChrisKAuthor Commented:
That's what I was afraid of...
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now