in reply to Perl Console Window

You can, maybe, use Win32::GUI.

When you log the keystrokes (I understand you have that covered already) you can check the window title of the topmost window like this:

my $title = Win32::GUI::Text(Win32::GUI::GetForegroundWindow()) or war +n("No title\n");

I don't really see the need for runnign this as a Service.

If you start the script using wperl.exe instead of perl.exe, there will be no DOS window visible.

You can also create a standalone .exe file using PerlApp (from ActiveState's PDK) and use the -gui option which will suppress the DOS window. This is better if you need to install it on computers with no Perl installed.

If what you want to do is to start the script automatically, create a shortcut in the Autostart or Startup program folder.

/J

Replies are listed 'Best First'.
Re: Re: Perl Console Window
by alkaloid (Initiate) on Jan 15, 2002 at 02:35 UTC
    Thank you very much for your help. I got the impression that you might have some ideas about the keystroke logging as well...any info you might have would be helpful, because we do have the script logging keys, but only in a console window. We need to have it logging _all_ keystrokes and have currently turned our attention towards doing some assembly. If you have any ideas on using Perl for this, it would help us out greatly. Thanks again.