Click here to Skip to main content
15,884,979 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I'm working on an application that stays in background(Tray). From that application how can I write to currently focused textbox (of other application). I also want to delete a specific number of character from current cursor position in that textbox.

Any help is appreciated.
Posted
Comments
CHill60 14-Feb-13 7:27am    
Is this some sort of random thing or do the applications "know about" each other? Are you writing both of them. Is it a particluar event that will trigger this behaviour? If you update your question with some extra detail along these lines it will help
Sandeep Mewara 14-Feb-13 9:25am    
And the issue is?

1 solution

If both of these are your applications then you can use any of the forms of Inter Process Communication[^] to communicate between them.

If the foreground app isn't yours or you can't change the code then you will need to get the handle to the edit control using PInvoke and do your thing from there - harder work but doable, plenty of examples online if you search.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900