• How do I enable popups from Task Scheduler

    From T@21:1/5 to All on Sat Nov 12 01:07:26 2022
    Hi All,

    Windows 11 Pro 22H2

    I wrote a program that will pop up various pieces of information
    (MessageBoxW from user32).

    When run from a command shell or an icon on the desk
    top, the pop ups run fine.

    But no pop ups when run from the Task Scheduler.

    How do I configure the Task Scheduler for the pop ups?

    Many thanks,
    -T

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Sat Nov 12 03:15:51 2022
    On 11/12/22 01:07, T wrote:
    Hi All,

    Windows 11 Pro 22H2

    I wrote a program that will pop up various pieces of information
    (MessageBoxW from user32).

    When run from a command shell or an icon on the desk
    top, the pop ups run fine.

    But no pop ups when run from the Task Scheduler.

    How do I configure the Task Scheduler for the pop ups?

    Many thanks,
    -T


    I got told this on another group:

    In order to display a user interface tasks
    must be configured to run only when the user
    is logged on. Otherwise they will run in
    non-interactive session 0 and any user
    interface they attempt to display will not
    be visible.

    My program must be run as administrator. The user
    is not logged in a administrator

    What now?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Sat Nov 12 04:46:18 2022
    T24gMTEvMTIvMjIgMDM6MTUsIFQgd3JvdGU6DQo+IE9uIDExLzEyLzIyIDAxOjA3LCBUIHdy b3RlOg0KPj4gSGkgQWxsLA0KPj4NCj4+IFdpbmRvd3MgMTEgUHJvIDIySDINCj4+DQo+PiBJ IHdyb3RlIGEgcHJvZ3JhbSB0aGF0IHdpbGwgcG9wIHVwIHZhcmlvdXMgcGllY2VzIG9mIGlu Zm9ybWF0aW9uIA0KPj4gKE1lc3NhZ2VCb3hXIGZyb20gdXNlcjMyKS4NCj4+DQo+PiBXaGVu IHJ1biBmcm9tIGEgY29tbWFuZCBzaGVsbCBvciBhbiBpY29uIG9uIHRoZSBkZXNrDQo+PiB0 b3AsIHRoZSBwb3AgdXBzIHJ1biBmaW5lLg0KPj4NCj4+IEJ1dCBubyB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22 01:07, T wrote:
    Hi All,

    Windows 11 Pro 22H2

    I wrote a program that will pop up various pieces of information
    (MessageBoxW from user32).

    When run from a command shell or an icon on the desk
    top, the pop ups run fine.

    But no pop ups when run from the Task Scheduler.

    How do I configure the Task Scheduler for the pop ups?

    Many thanks,
    -T

    I got told this on another group:

    In order to display a user interface tasks
    must be configured to run only when the user
    is logged on. Otherwise they will run in
    non-interactive session 0 and any user
    interface they attempt to display will not
    be visible.

    My program must be run as administrator. The user
    is not logged in a administrator

    What now?

    If the user is an Administrator type instead of Standard User type, simply
    tick the "Run with highest provileges" checkbox. That's all.

    However, if the user is a Standard User type, Microsoft psexec's `-i 1`
    command line switch is supposedly for solving this problem, but apparently
    is not working properly. In Windows 7, even though the program has been
    shown on the taskbar and its window is responsive to mouse/keyboard inputs,
    its window content fails to be drawn - leaving ghost images from other application windows which were overlapping its window boundary. In Windows
    10, the program's window is not even visible on the taskbar. I think psexec need some bug fixing.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Sat Nov 12 05:48:19 2022
    On 11/12/22 05:40, JJ wrote:
    On Sat, 12 Nov 2022 03:15:51 -0800, T wrote:
    On 11/12/22 01:07, T wrote:
    Hi All,

    Windows 11 Pro 22H2

    I wrote a program that will pop up various pieces of information
    (MessageBoxW from user32).

    When run from a command shell or an icon on the desk
    top, the pop ups run fine.

    But no pop ups when run from the Task Scheduler.

    How do I configure the Task Scheduler for the pop ups?

    Many thanks,
    -T

    I got told this on another group:

    In order to display a user interface tasks
    must be configured to run only when the user
    is logged on. Otherwise they will run in
    non-interactive session 0 and any user
    interface they attempt to display will not
    be visible.

    My program must be run as administrator. The user
    is not logged in a administrator

    What now?

    If the user is an Administrator type instead of Standard User type, simply tick the "Run with highest provileges" checkbox. That's all.

    Did not work for me


    However, if the user is a Standard User type, Microsoft psexec's `-i 1` command line switch is supposedly for solving this problem, but apparently
    is not working properly. In Windows 7, even though the program has been
    shown on the taskbar and its window is responsive to mouse/keyboard inputs, its window content fails to be drawn - leaving ghost images from other application windows which were overlapping its window boundary. In Windows 10, the program's window is not even visible on the taskbar. I think psexec need some bug fixing.


    It looks like WTSSendMessageA will work.
    Now to code it for Raku

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)