ankit.tayal560 has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::GuiTest qw(:ALL); use strict; system("C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Accessori +es/Calculator.lnk"); my @window=FindWindowLike(undef,"Calculator"); if(!@window) { die("cannot find window with title/caption Calculator\n"); } else { printf("window handle of Calculaotr is %x \n",$window[0]); }
I've written above code tryin gto automate a calculator operation . the problem here is when I invoke a system call to open a calculator through my script the script stucks there and the further actions of the script are not performed. Any solutions to the above problem ??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with System() command in perl?
by BrowserUk (Patriarch) on Oct 07, 2016 at 11:24 UTC | |
|
Re: Problem with System() command in perl?
by marto (Cardinal) on Oct 07, 2016 at 10:34 UTC | |
by ankit.tayal560 (Beadle) on Oct 07, 2016 at 10:42 UTC | |
by marto (Cardinal) on Oct 07, 2016 at 10:58 UTC | |
by ankit.tayal560 (Beadle) on Oct 07, 2016 at 11:36 UTC | |
by shadowsong (Pilgrim) on Oct 07, 2016 at 13:03 UTC |