|
-
May 21st, 2006, 08:46 AM
#1
Thread Starter
Fanatic Member
[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.
-
May 21st, 2006, 10:00 AM
#2
Re: [2005] Sending Keys to another application
Nope, sendmessage is still the way to go
-
May 21st, 2006, 12:50 PM
#3
Thread Starter
Fanatic Member
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.
-
May 21st, 2006, 02:30 PM
#4
Junior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|