Receiving visual notifications even when Mathematica is minimized?


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.


Posted 2018-04-02T19:24:07.067

Reputation: 21



Actually MessageDialogdoes appear even if Mathematica is minimized.

Other MS Windows only solutions:

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

Alert["Time for tea"]

or simply

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


Posted 2018-04-02T19:24:07.067

Reputation: 26 859