Link to home
Start Free TrialLog in
Avatar of roupik
roupik

asked on

Monitoring activation of some window

How can I catch messages in my program activation or deactivation of some other program(window) ?
Avatar of sereda
sereda

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.
Avatar of roupik

ASKER

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(
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?
Well, then it's not that simple question (for me, at least) ;)
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.
ASKER CERTIFIED SOLUTION
Avatar of pbibergal
pbibergal

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

ASKER

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