in reply to Re^10: Gui Automation using guitest
in thread Gui Automation using guitest

Seriously, your program can never have worked (except by accident). Start learning Perl and learning how to read documentation.

Where in the documentation for Win32::GuiTest did you find the following usage?

FindWindowLike( undef,"[Install*.*|*Setup.*]","" )

This is not how it is shown to be used and can never work as intended.

You need to stop guessing and making things up and you need to start learning programming, and how to read documentation, and then learn Perl.

Update: Weakened first sentence

Replies are listed 'Best First'.
Re^12: Gui Automation using guitest
by shayak (Acolyte) on Feb 15, 2011 at 10:45 UTC
    Im just including a regular expression as i needed a window which says installation or setup or something similar thats why the * and it can have any extension so *.* . But this thing was working before..

      No test script can accept "or something similar". You have to be far more specific in what you mean by "something similar". * is not the way you tell Perl "or something similar". If you want to talk to Perl, you have to do it in a lanaguage it understands. See perlre or perlretut.

      That this part was "working before" is likely an accident and not something caused by your intention.

        Ok. Can u please just give me an example. Im not getting exactly how to write it. in a diff code i wrote the following which worked but in this its not. my @window = FindWindowLike( undef,"^File Download","" ); In that FindWindowLike i need a window which is an installation window of an application. The name of the window can be anything like installation.exe or setup.exe or notepad-installation.msi. As it is a randomized window i cant be sure of the name as it can be different for different applications..

      You seem to be confusing wildcards for perl regular expressions, again as you've been advised you need to learn how to use the tool you've chosen. See prelre and prelrequick.

        Can u please just give me an example. Im not getting exactly how to write it. in a diff code i wrote the following which worked but in this its not. my @window = FindWindowLike( undef,"^File Download","" );In the codethat i have now wriiten,in FindWindowLike i need a window which is an installation window of an application. The name of the window can be anything like installation.exe or setup.exe or notepad-installation.msi. As it is a randomized window i cant be sure of the name as it can be different for different applications..