Parameter 262144
(top-most attribute set) in Task Scheduler does not work. When creating a task to run a .vbs file, parameter 262144
does not work (does not open the window on top of others), although if you run it yourself, then everything works. With parameter 4096
, it runs on top of all windows, but then there will be an icon in the upper left of the window (which does not suit me).
Here's my script:
MsgBox "msg", vbOKOnly + vbInformation + 262144, "title"
I noticed that if I run it like this:
Set Sound = CreateObject("WMPlayer.OCX")Sound.URL = "\to\path"Sound.Controls.playMsgBox "msg", vbOKOnly + vbInformation + 262144, "title"
So the script is launched through the Task Scheduler on top of all windows...
P.S.
Please do not suggest making msgbox yourself, .HTA, etc. I want to solve exactly this problem.