Hmmmm...... to be fair, I posted this 4 years ago and I linked you to it without testing!skywalk wrote:Thanks kenmo.BTW, your "safe" method doesn't work.kenmo wrote:There are a handful of similar solutions here:
http://www.purebasic.fr/english/viewtop ... erequester
The single procedure with the label is OK, except for a warning:
[12:12:57] Waiting for executable to start...
[12:12:57] Executable type: Windows - x86 (32bit)
[12:12:57] Executable started.
[12:12:57] [WARNING] Line: 11
[12:12:57] [WARNING] The specified '@ProcedureName()' is not a Procedure pointer.
[12:13:02] The Program execution has finished.
If you want to be totally safe (as in, no memory leaks by killed threads, etc.) and you want customizable (timeout, delay before clicking, custom text), it is really worth the small bit of extra time to write your own custom messagebox system. It doesn't take much effort to make it seamlessly work with most programs. You can even set the messagebox to be Always-on-top, and disable any main windows you want.
The ONLY drawback I can think of right now is that MessageRequester makes icon use simple... of course that's only true in Windows (correct me if I'm wrong).