JElster
asked on
C# SendKeys - Need to use SendKeys or any other method to set 'focus' to another application.
I have C# App. that launches another program. I need to write code that will set focus to the other application and do a paste. I have the code to paste.
Can not figure out how to set focus to the other app. Even if the other app. the top most app. The Send Keys does not work. Can I do a SendKeys Mouse Click?
TIA
Can not figure out how to set focus to the other app. Even if the other app. the top most app. The Send Keys does not work. Can I do a SendKeys Mouse Click?
TIA
ASKER
Does not work...
You'll need to use WinAPI to find the proper window and set the focus manually.
ASKER
Any idea how ? Thanks....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can send relevant numer of "tab" keys to go to that particular field...
Cheers!
venkat.