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

847Re: Help Required: On system function

Expand Messages
  • vishal_kharge
    May 2, 2005
    • 0 Attachment
      Hello,

      By increasing the delay time, its still not working.

      Thanks,
      Vishal K

      --- In perlguitest@yahoogroups.com, "pkaluski" <pkaluski@p...> wrote:
      > I would try giving it more time. Try to sleep for 10 seconds
      (instead
      > of 2) and see if it helps
      > -Piotr
      >
      >
      >
      >
      > --- In perlguitest@yahoogroups.com, "vishal_kharge"
      > <vishal_kharge@y...> wrote:
      > > Hello ,
      > >
      > > I am getting the error "Could not find Paint" when I run the
      > > following script:
      > >
      > > use strict;
      > >
      > > use Win32::GuiTest qw(:ALL);
      > >
      > > system("start mspaint");
      > >
      > > sleep 2;
      > > my @windows = FindWindowLike(0, "Paint", "");
      > > die "Could not find Paint\n" if not @windows;
      > >
      > >
      > > I am using the ActivePerl for running the scripts.
      > >
      > > I think the statement: system("start mspaint"); is not getting
      > > executed.
      > >
      > > What may be the reason and how should I solve this problem.
      > >
      > > Regards,
      > > Vishal Kharge
    • Show all 7 messages in this topic