Click here to Skip to main content
13,355,292 members (60,338 online)
Rate this:
Please Sign up or sign in to 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 14-Feb-13 1:15am
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180111.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100