In several scripts I use Win32::MsgBox() to display a short message to the user. This works fine even for scripts that do not have a console (are run by wperl.exe). The problem is that the scripts stop executing until the user clicks the OK. I would need the script to continue and even end no matter whether the msgbox is still displayed. (This means that using threads would not be enough.)
I thought about starting a separate script that would just display the message and end when the user clicks OK. But this takes up a lot of memory. So I tried to create such an app in C# (just came from a training). That was even worse! And in VB ... slightly better but still huge. I failed doing this in plain old C. (I've never been a C programmer.)
The best I can do at the moment is to send the currently logged user a message via Win32::Message/system("net send ...").
Does anyone have a better idea? Or knows of a "tiny utility" that would call the MessageBoxA() Win32 API function with the caption and message I give it? No need to get the result, no need to show any other buttons but the OK, etc ...
Thanks, Jenda
In reply to Show a msgbox and do not wait (Win32) by Jenda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |