ankit.tayal560 has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Win32::GuiTest qw(:ALL); my @window2=FindWindowLike(undef,m"^\s*(SURFer)\s*(\W+)\s+(note)\s*$") +; if(!@window2) { die("cannot find window with title/caption SURFer++ note\n"); } else { print("the matched strings are :\n <$1>\t<$2>\t<$3>"); printf("window handle of SURFer++ note is %x \n",$window2[0]); }
I wrote this code but it is not working .can you suggest me a suitable solution for the above case?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use FindWIndowLike to find a window like "SURFer++ note" under Win32::GuiTest module
by Corion (Patriarch) on Sep 08, 2016 at 08:33 UTC | |
by ankit.tayal560 (Beadle) on Sep 08, 2016 at 09:07 UTC | |
by Corion (Patriarch) on Sep 08, 2016 at 09:21 UTC | |
by ankit.tayal560 (Beadle) on Sep 08, 2016 at 10:12 UTC | |
|
Re: How to use FindWIndowLike to find a window like "SURFer++ note" under Win32::GuiTest module
by marto (Cardinal) on Sep 08, 2016 at 08:49 UTC |