thepace
thepace

Reputation: 2221

Showing a non-blocking window/popup/dialog-box/notification in Perl without TK

I wish to execute a Perl script (without Tk) which should show a non-blocking notification (via window/dialog/popup/notification, etc). Currently, I have tried using:

In both cases, the window is blocked for user input. Also, if there is any option using Windows' system commands, please do mention that as well.

The perl script is a standalone script executed on windows.

Upvotes: 1

Views: 726

Answers (1)

mob
mob

Reputation: 118605

Use a blocking notification, but run it from a child process after a fork.

sub dialog {
    my $msg = shift;
    if (fork() == 0) {
        my_Win32_GUI_function_to_display_dialog($msg);
        exit;
    }
}

Upvotes: 1

Related Questions