Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET
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 0:15am
Comments
CHill60 at 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 at 14-Feb-13 9:25am
   
And the issue is?

1 solution

Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 646
1 OriginalGriff 385
2 CPallini 240
3 PIEBALDconsult 150
4 Magic Wonder 131
0 OriginalGriff 5,835
1 Sergey Alexandrovich Kryukov 5,198
2 CPallini 4,740
3 George Jonsson 3,167
4 Gihan Liyanage 2,470


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2014
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