is there some way to destroy/close a messagebox without clicking on it?

-> invoke MessageBox, 0, addr bla, addr bla, 0
doesnt return a handle which i might use with
-> invoke destroywindow, handle
to kill that thing.

so? any ideas? tia...
Posted on 2004-08-05 01:47:06 by ploptor
try to find it by caption...
Posted on 2004-08-05 02:09:44 by happyfly
what does Spy++ say?
may be there is a special mbox class or smthg?
Posted on 2004-08-05 02:14:06 by happyfly
also i think da breaker crew released a program that will just get rid of all the messageboxes in a program ;x
Posted on 2004-08-05 02:17:56 by HeXeN
Ive got the class #32770, but this dialog is modal and to close it u have to make new thread ;)
Posted on 2004-08-05 02:28:01 by happyfly
@ hexen:

i dont need it for cracking. if you want to crack stuff, this is not the right place for you :-/.
Posted on 2004-08-05 04:30:12 by ploptor
chill, it was just an idea. so you wouldn't have to close all those messageboxes. i didn't say anything about cracking or reverse engineering. the program does all the work. i didn't even give you the name of the program. and i just mentioned it as an idea so you wouldn't have to do all that work to try to get rid of them.:notsure:
Posted on 2004-08-05 04:40:45 by HeXeN
ok well i have thought about this a little and i have not written a function for this but i did make a list of things that you could do based on certain attribute of a messagebox. the attributes are here:

now all you would need to do is find out which functions will give you information on these attributes so you can properly identitify it as a messagebox.

i hope this helps a little im not sure that it will but i hope it does.

Posted on 2004-08-05 05:21:25 by HeXeN
I posted code to another thread to get the handle of a MessageBox.
In the other thread I was showing how to change the icon of same. The code
is straight forward and easy to modify. Use the routine and set up a regular timer...

MessageBox Icon thread
Posted on 2004-08-05 07:17:52 by Graebel
Your other option is to create your own modeless dialog box to display your message, and set-up a timer to destroy it if the user does not do it.

Posted on 2004-08-05 19:46:41 by Raymond