Link to home
Start Free TrialLog in
Avatar of JElster
JElsterFlag for United States of America

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
Avatar of venkateshwarr
venkateshwarr

Hi JElster,
you can send relevant numer of "tab" keys to go to that particular field...

Cheers!
venkat.
Avatar of JElster

ASKER

Does not work...


You'll need to use WinAPI to find the proper window and set the focus manually.


Avatar of JElster

ASKER

Any idea how ? Thanks....
ASKER CERTIFIED SOLUTION
Avatar of _TAD_
_TAD_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial