> I've written a Perl service which to help monitor an 
> application. On discovering an issue it is to bring up an 
> Internet explorer window with a link to a particular site. 
> Everything works perfectly, except that the Internet explorer 
> window is not visable!
> The service starts Internet explorer with no problems (ie it 
> is visable in the task manager), it's almost like because it 
> is running as a service, child process's created from it are 
> inheriting it's "windowless" state. I can take the same code, 
> strip it out and run it from a cmd prompt and it works no 
> problem. It only has an issue when created as a service.
> 
> Here is the basic code used:
> 
>       use strict;
>       use warnings;
>       use Win32;
>       use Win32::Process;
>       my $prog="C://Program Files//Internet Explorer//iexplore.exe";
>       my $site="http://www.google.com";;
> 
>       Win32::Process::Create($ProcessObj,"$prog"," 
> $site",0,NORMAL_PRIORITY_CLASS,".");
> 
> 
> Again, this works as a script that can run from the cmd line 
> but the same code will not work when generated as a service 
> (obviously more code then this to generate a service, I can 
> supply code for review if someone is interested, the call to 
> initiate IE is the same though).

Be sure your service has "Allow service to interact with Desktop"
selected. 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to