• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 135
  • Last Modified:

Monitoring activation of some window

How can I catch messages in my program activation or deactivation of some other program(window) ?
0
roupik
Asked:
roupik
  • 3
  • 2
  • 2
  • +1
1 Solution
 
seredaCommented:
To catch messages that go through your application's (main thread's) message queue, you can use
  Application. OnMessage
event.

To catch all other events, i beleive you should use a very sophisticated technique which i don't think you need in fact.
0
 
roupikAuthor Commented:
Event generate some other window (other application). And this event I want to catch in another (my application). onMessage doesn't work to me :o(
0
 
edeyCommented:
roupik,
This would require subclassing the other app's window (which requires injecting a .dll into that app's address space) which is highly undesirable.  Perhaps you could explain, in a little more detail, what it is you need to do as there may be a better solution

GL
Mike


Sereda, did you read the question? Did you consider giving a comment before an irrelevant answer?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
seredaCommented:
Well, then it's not that simple question (for me, at least) ;)
0
 
seredaCommented:
Okay, edey, i admit my mistake -
I am sorry, roupik.
I am quite new here, and i didn't find any reasonable instructions distinguishing comments and answers.
Also i just didn't think that a complicated question involving dll injection would cost 25 pt.
Again, i apologise.
0
 
pbibergalCommented:
You should hook the system messages..
because this is really hard work i suggest you to get allready working component that will notify you about it.. it is called Twatch, you can download it from www.bome.com
0
 
edeyCommented:
hey... To err is human, to do so twice is to invite an ass whoopin' :).  I hope you'll be able to find ee as helpfull (& interesting) as man of us do :)

GL
Mike
0
 
roupikAuthor Commented:
Hi, all guys - stop every irrelevant sentences :o) I'm in for about one hour and got many answers for my (sometimes) not easy Q - sorry for 25 pts, I don't know it is not easy to track ... stay tuned, more q is comming
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now