Please support our C# advertiser: Programming Forums
![]() |
•
•
Join Date: Jan 2008
Posts: 18
Reputation:
Rep Power: 1
Solved Threads: 0
What I'm trying to do is for example, click a button on the program and have the program send a keystroke to another program that is not the active window. So far all I have is this
This works fine if the program I want to send the keystrokes to is the active window, however I want to be able to send it to a non active window does anyone have any recommendations?
Thanks
SendKeys.Send("TEST");This works fine if the program I want to send the keystrokes to is the active window, however I want to be able to send it to a non active window does anyone have any recommendations?
Thanks
•
•
Join Date: Jan 2008
Posts: 18
Reputation:
Rep Power: 1
Solved Threads: 0
•
•
•
•
SendKeys sends to the active application so, if the app you want to send to is focused it should be sending to it.
and it does, I guess I'm looking for a way to quickly switch the active window from
current active window --> target window --> back to "current active window"
Last edited by mark192 : Aug 21st, 2008 at 3:37 am. Reason: typo
![]() |
Other Threads in the C# Forum
- Previous Thread: need help in server
- Next Thread: There is no row at position -1
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode