simulating keyboard

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jimif_fr

    simulating keyboard

    How is it possible to simulate the keyboard entries (and the mouse events) of
    one program, from another program. The first program is not written for this
    purpose and is a not aware of the simulation.
  • Cor Ligthert

    #2
    Re: simulating keyboard

    Jimif,

    In my opinion can you use remoting.

    http://msdn.microsoft.com/library/de...oremoting.aspI hope this helps?Cor"jimif _fr" <jimif_fr@discu ssions.microsof t.com>> How is it possible to simulate the keyboard entries (and the mouse events)of> one program, from another program. The first program is not written forthis> purpose and is a not aware of the simulation.

    Comment

    • Andrew McNerlin

      #3
      Re: simulating keyboard

      I believe you will need to look to the win32 api to hook into events.
      Check out this article:


      Andrew McNerlin

      -----Original Message-----
      From: jimif_fr [mailto:jimif_fr @discussions.mi crosoft.com]
      Posted At: 14 December 2004 08:01
      Posted To: microsoft.publi c.dotnet.genera l
      Conversation: simulating keyboard
      Subject: simulating keyboard

      How is it possible to simulate the keyboard entries (and the mouse
      events) of
      one program, from another program. The first program is not written for
      this
      purpose and is a not aware of the simulation.

      Comment

      • Niki Estner

        #4
        Re: simulating keyboard

        "jimif_fr" <jimif_fr@discu ssions.microsof t.com> wrote in
        news:820E856B-C225-4197-AD4C-9465C5CB79F6@mi crosoft.com...[color=blue]
        > How is it possible to simulate the keyboard entries (and the mouse events)
        > of
        > one program, from another program. The first program is not written for
        > this
        > purpose and is a not aware of the simulation.[/color]

        Did you try the SendKeys class? If not, P/Invoking SendInput (Windows API)
        should do the job. Maybe you can find a managed wrapper on the net.

        Niki


        Comment

        Working...