2
$\begingroup$

How to receive visual notifications on screen during long computation even when Mathematica is minimized? Question is similar to this: How to make the Mathematica icon flash in the taskbar?.

MessageDialog[] (or anything similar) would be great but I don't know how to force it to appear on screen when Mathematica is minimized. Solution would be if with some command Mathematica could be automaticaly maximized but I couldn't find how to do it neither.

Alternatives: Beep[] is not an option for me because I keep sound turned off, besides I could easily miss the beep when I leave computer for a moment. SendMail[] overall is an option. In fact, it works very well for me when I'm not at home. But when I'm sitting at my computer I want to receive instant message on screen.

I'm using Mathematica 9 on Windows.

$\endgroup$

1 Answer 1

1
$\begingroup$

Actually MessageDialogdoes appear even if Mathematica is minimized.

Other MS Windows only solutions:

Alert[S_String] := Module[
  {filename = FileNameJoin[{$TemporaryDirectory, "MmaAlert.vbs"}]},
  Export[
   filename,
    StringJoin["msgbox \"", S, "\", 0, \"Message from Mathematica\""],
    "String"];
  SystemOpen[filename];
  ]

Alert["Time for tea"]

or simply

Alert2[S_String] := Run["cmd /C msg * " <> S]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.