Loading ...
Sorry, an error occurred while loading the content.

1147Re: [perlguitest] strict subs error

Expand Messages
  • A Chan
    Oct 10, 2005
    • 0 Attachment
      Hi Amine,

      I can run your code snippet without any errors. You might want to check if you actually have the Win32::GuiTest package installed properly.



      Cheers,



      Al Chan


      amine beghdous <aminedz29@...> wrote:

      Hi All,



      I'm new to perl and Guitest and I'm trying to execute the following perl script:



      #!/usr/bin/perl
      ## Initially generated by Win32-GuiTest Recorder (v1.03)

      ## Pragmas/Directives
      use strict;
      use warnings;




      ## Imports
      use Win32::GuiTest qw/:ALL/;

      $Win32::GuiTest::debug = 0; # Set to "1" to enable debug output.

      ## Main/Core

      # system "start notepad";
      sleep 1;
      while(1) {
      SendRawKey(VK_DOWN, KEYEVENTF_EXTENDEDKEY);
      SendKeys "{PAUSE 200}";
      }

      but i got the error message below:



      Bareword "VK_DOWN" not allowed while "strict subs" in use at tmp10.pl line 19.
      Bareword "KEYEVENTF_EXTENDEDKEY" not allowed while "strict subs" in use at tmp10
      .pl line 19.
      Execution of tmp10.pl aborted due to compilation errors.



      Could anyone please help me.



      thanks a lot.



      ---------------------------------
      Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
      Téléchargez le ici !

      [Non-text portions of this message have been removed]





      SPONSORED LINKS
      Basic programming language C programming language Computer programming languages The c programming language C programming language List of programming languages

      ---------------------------------
      YAHOO! GROUPS LINKS


      Visit your group "perlguitest" on the web.

      To unsubscribe from this group, send an email to:
      perlguitest-unsubscribe@yahoogroups.com

      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


      ---------------------------------




      ---------------------------------
      Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

      [Non-text portions of this message have been removed]
    • Show all 7 messages in this topic