Hello,
I'm using Win32::GuiTest module to open XVI32 hex editor. This module and its methods suits my automation project but somehow FindWindowLike() method returns two window handles. But for other applications like notepad, calculator, it returns one window handle as expected. There are no other XVI32 window that's open when I run my script. So, I'm clueless as to why this happens for this particular app.
use strict;
use warnings;
use Win32::GuiTest qw(:ALL);
my $exe = "C:\\XVI32.exe";
system "start $exe";
sleep(1);
my @windows = ();
@windows = FindWindowLike(undef, "XVI32", "", undef, 0);
The size of this array is two by default and if there's another XVI32 window is open, then the size becomes 4. It increments in multiples of 2.
Has this something to do with the system command?
Thanks,
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.