Pop up Message in PERL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pramodkh
    New Member
    • Nov 2007
    • 23

    Pop up Message in PERL

    Hi All,

    I have a query

    Is it possible in PERL to popup a message?
    I have a requirement like this:
    Copy a file from a location and once the copy is complete pop up a message to the user that Successfully copied the file...(as the copying file script is scheduled in the scheduler...use r dont want to refer to the log files). I can think of sending mails...but i feel sending mails is not feasible for such a small requirement.

    Till now i haven't tried something like this...I just started seraching for this, if this is possible then please let me know.

    Thanks in advance.
    Regards
    Pramod
  • nithinpes
    Recognized Expert Contributor
    • Dec 2007
    • 410

    #2
    For sending Windows pop-up messages, you can make use of Net::NetSend module.

    Comment

    • pramodkh
      New Member
      • Nov 2007
      • 23

      #3
      I am able to achieve this using Perl TK.
      here is the code:

      Code:
      use Tk;
      use strict;
      
      # Main Window
      my $mw = new MainWindow;
      $mw -> messageBox(-message=>"Successfully Copied the File");
      Thanks for everyone.
      Regards
      Pramod

      Comment

      • savanm
        New Member
        • Oct 2006
        • 85

        #4
        Originally posted by pramodkh
        I am able to achieve this using Perl TK.
        here is the code:

        Code:
        use Tk;
        use strict;
        
        # Main Window
        my $mw = new MainWindow;
        $mw -> messageBox(-message=>"Successfully Copied the File");
        Thanks for everyone.
        Regards
        Pramod

        Another way to do this using win32 Module

        [code=perl]
        use Win32;
        Win32::MsgBox(" Successfully copied");
        [/code]
        Last edited by numberwhun; Mar 12 '08, 01:53 PM. Reason: fix code tags

        Comment

        • pramodkh
          New Member
          • Nov 2007
          • 23

          #5
          Originally posted by savanm
          Another way to do this using win32 Module

          [code=perl]
          use Win32;
          Win32::MsgBox(" Successfully copied");
          [/code]
          Hey Thanks Savan. This is more useful. With TK it was opening some unwanted window in the background. This is what I wanted.
          Thanks.
          Pramod

          Comment

          • savanm
            New Member
            • Oct 2006
            • 85

            #6
            Originally posted by pramodkh
            Hey Thanks Savan. This is more useful. With TK it was opening some unwanted window in the background. This is what I wanted.
            Thanks.
            Pramod

            Hi

            [code=text]

            Welcome.. Carry on Mr.promoth.

            [/code]

            Comment

            Working...