Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • As you said

    periodically pop up alerts on my machine

    do you even need a GUI toolkit? It seems to me like a plain MessageBox [microsoft.com] API call is all you need.

    That is, unless you want the script to continue running while the message is shown. In that case, you could set up a simple window with The GUI Loft [darserman.com]. Oldie, but probably good enough.

    And I've never seen a service with a GUI, I'm not sure if it will behave nicely.

    • Actually I think I'll probably input a couple of things into the dialog box, so it's more than just a message box.

      But I'm unclear on what you're suggesting ... write XS code? Or is there some standard way to call MessageBox from Perl? I'm pretty ignorant. :)

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
    • I said

      And I've never seen a service with a GUI, I'm not sure if it will behave nicely.

      and today I found this blog post: Do you still use the MessageBox API in your Windows Service? (Or do you display any type of User Interface?) [msdn.com]

      and it says:

      Starting with Windows Vista and above, user interfaces generated by Windows services can’t be seen. And even worst, your service could be stuck waiting for some user input that the user cannot give as she does not see anything!

      It goes on to give a generic solution (plus a simple solution for just a messagebox), but it's anything but trivial.

      But