Thread necro'd to simply add that the original script does work, with nSecondTimeout, by simply using $comcall() instead of $com(). You can optionally specify a callback alias in $comcall() to be triggered when a button is clicked or the nSecondsTimeout elapses, or you can leave this parameter blank. You can also use an advanced command such as 'echo $!com($1).result' instead of just an alias.

/comopen WshShell WScript.Shell
//echo -a $comcall(WshShell, echo -a $!com($1).result, Popup,3, bstr,Hello World!, int,10, bstr,Popup Window, int,$calc(6+32+4096))
/comclose WshShell


Resource: https://docs.microsoft.com/en-us/previou...%28v%3dvs.84%29
Resource: https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-messagebox

Extra credit: If you use the flag value 2097152 (MB_SERVICE_NOTIFICATION), the popup window will appear for any user desktop that's logged in, or when no user is logged in, or when the computer is locked (Win+L) or in the (Ctrl+Alt+Del) screen. mIRC does not need to be Admin to do this. It's very special. wink Enjoy. (12 years late)


Well. At least I won lunch.
Good philosophy, see good in bad, I like!