in reply to Re: How can I read keyboard "in the background"
in thread How can I read keyboard "in the background"

Well it's not quite what I'm looking for : I'd like for the window to react (just like in your script) whether it's active ot not (focused or blurred) which isn't the case in your script.
If for example you're working in MS Word and you press the return key, then MS Word solely deals with it whereas I'd like for the perl script in the background to react as well. Thanks for your help !
  • Comment on Re: Re: How can I read keyboard "in the background"

Replies are listed 'Best First'.
Re: Re: Re: How can I read keyboard "in the background"
by finni (Beadle) on Jun 10, 2003 at 18:16 UTC
    I think you'll want to write a Word macro or some VB or VBA that will call your Perl script, passing it the current application and filename.
Re: Re: Re: How can I read keyboard "in the background"
by zentara (Cardinal) on Jun 11, 2003 at 14:09 UTC
    I think you might be looking for a way to bind keys at the x server level. Something like hit F11 and "someapp" jumps into focus. How about xbindkeys?
      Well actually I'm running under Win NT so I can't really use X Window. Basically I'm looking for a hotkey method, if you've any idea.
      Thanks for ur help.
Re: Re: Re: How can I read keyboard "in the background"
by Mr. Muskrat (Canon) on Jun 10, 2003 at 15:54 UTC
    I beleive that what you want would require rewriting the Windows keyboard drivers or at least piggybacking the interrupts.