Jim Hansen wrote:
> Bill,
>
> here is one thing that is very odd..
>
> I made the following mods in your script and
> everything seems to work:
>
> use Win32::Process;
> use Win32 ();
> use Win32::GuiTest qw(FindWindowLike GetWindowText
> SetForegroundWindow);
>
> my $PObj;
> my $app_path = shi
Bill,
here is one thing that is very odd..
I made the following mods in your script and
everything seems to work:
use Win32::Process;
use Win32 ();
use Win32::GuiTest qw(FindWindowLike GetWindowText
SetForegroundWindow);
my $PObj;
my $app_path = shift || @ARGV;
(my $cmdline = $app_path) =~ s/^.
Tried that. Didn't work, but I do find if I use the
entire window name (Untitled - Notepad) vs just
(notepad) then it isn't an issue, so the general
searches apparently won't work. Bummer.
Thanks for the help though.
Jim
--- $Bill Luebkert <[EMAIL PROTECTED]> wrote:
> Jim Hansen wrote:
>
> > B
Jim Hansen wrote:
> Bill
> The time delay helped out (sleep 1) was good enough. I did find out too
> that passing "C:/Windows/notepad.exe" into $ARGV or @ARGV[0] causes your
> script to produce this:
>
> Window Found(Text : 'C:\WINDOWS\system32\cmd.exe - perl script.pl
> c:/windows/notepad.exe
Bill
The time delay helped out (sleep 1) was good enough. I did find out too that passing "C:/Windows/notepad.exe" into $ARGV or @ARGV[0] causes your script to produce this:
Window Found(Text : 'C:\WINDOWS\system32\cmd.exe - perl script.plc:/windows/notepad.exe "(?i)notepad"' Class : 'Console Wi
Jim Hansen wrote:
> The '*' was the only thing I could find. Not a lot of info and
> Microsoft's site on this was no help. At anyrate, when I make the
> changes to the search, I still get
>
> Window Found(Text : 'C:\WINDOWS\system32\cmd.exe - perl script.pl
> c:/windows/notepad.exe "(?i)notep
The '*' was the only thing I could find. Not a lot of info and Microsoft's site on this was no help. At anyrate, when I make the changes to the search, I still get
Window Found(Text : 'C:\WINDOWS\system32\cmd.exe - perl script.pl c:/windows/notepad.exe "(?i)notepad"' Class : 'Console WindowCl
Jim Hansen wrote:
> Here is a tricky one...
>
> I'm trying to get a window handle from a window I
> launch through Win32::Process, but the debug result I
> get seems to be picking up the cmd prompt window
> rather than something simple like notepad.
>
> Using this command line:
> perl script.pl
: Win32::GuiTest SendKeys delay
--- Marcus <[EMAIL PROTECTED]> wrote:
>
> Jim, what did you test on, and which Perl/Guitest
> version do you have?
> I still get an error with NT 4 and AP
> 623.
>
> Thanks,
>
> Marcus
>
Hi Marcus,
I used a Win98se box with bu