grashoper has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::GuiTest qw(FindWindowLike SetForegroundWindow SendKeys); use strict; my @argv=("E:\\MIBOR_TimingTest\\MIBOR\\MIBOR.usr"); system(@argv)==0 or die "Failed to execute Loadrunner"; sleep (600); my @whnds=FindWindowLike( undef,"^Mercury Virtual User Generator"); if (!@whnds){ die "Cannot find window with title/caption Mercury"; } else{ printf("Window handle of Mercury is %x\n", $whnds[0]); } sleep (60); SetForegroundWindow($whnds[0]); SendKeys("{F5}");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: automating loadrunner start
by runrig (Abbot) on Apr 22, 2009 at 21:00 UTC | |
by ikegami (Patriarch) on Apr 23, 2009 at 00:06 UTC | |
by Anonymous Monk on Apr 23, 2009 at 09:38 UTC | |
|
Re: automating loadrunner start
by almut (Canon) on Apr 22, 2009 at 20:52 UTC | |
by grashoper (Monk) on Apr 22, 2009 at 21:03 UTC | |
by runrig (Abbot) on Apr 22, 2009 at 21:08 UTC | |
by grashoper (Monk) on Apr 22, 2009 at 21:09 UTC | |
by runrig (Abbot) on Apr 22, 2009 at 21:11 UTC | |
| |
by almut (Canon) on Apr 22, 2009 at 21:26 UTC |