Results 1 to 4 of 4

Thread: [2005] Sending Keys to another application

  1. #1

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    [2005] Sending Keys to another application

    Does .NET provide any functionality for sending a key to another window. I just want to simulate a keypress on another application. Will I have to resort to some kind of API, or does .NET have something built-in? Thanks.

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: [2005] Sending Keys to another application

    Nope, sendmessage is still the way to go

  3. #3

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    Re: [2005] Sending Keys to another application

    Ok, thanks, I'll look into that. Does .NET provide any functionality for capturing keys? I remember vb6 had no real way to create a global keyboard hook, has this changed in .NET? I guess I'm sort of asking about a keylogger.

  4. #4
    Junior Member
    Join Date
    May 2006
    Location
    My Computer
    Posts
    30

    Re: [2005] Sending Keys to another application

    There's no built-in way. But several people have written implemantations that you can take advantage of. Check out the following article.

    http://www.codeproject.com/csharp/globalsystemhook.asp
    --
    JaredP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width