Active window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SmltNzEw?=

    Active window

    I have a need to send data (text) received via a COM port to the active
    window from a Windows service. Can anyone out there suggest how I should
    handle this in a .Net, Window XP environment? Thanks.
  • Marc Gravell

    #2
    Re: Active window

    I don't know... and for a good reason: it is not good practice for a
    service to directly interact with the UI - and there is a good chance
    that any solution you come up with will stop working under Vista. What
    it nobody is logged on? What if several people are loogged on?

    It sounds like you are trying to write a keyboard driver... perhaps
    you need to look at sending the data to the keyboard buffer instead?

    Marc


    Comment

    • =?Utf-8?B?SmltNzEw?=

      #3
      Re: Active window

      Thanks for the advice. It has been a while since I developed desktop
      applications.

      Jim

      "Marc Gravell" wrote:
      I don't know... and for a good reason: it is not good practice for a
      service to directly interact with the UI - and there is a good chance
      that any solution you come up with will stop working under Vista. What
      it nobody is logged on? What if several people are loogged on?
      >
      It sounds like you are trying to write a keyboard driver... perhaps
      you need to look at sending the data to the keyboard buffer instead?
      >
      Marc
      >
      >
      >

      Comment

      Working...