Solved

Capturing NetSend messages

Posted on 2004-03-22
5
182 Views
Last Modified: 2010-04-05
I am curious to know if anyone out there has a code solution to cature incoming netsend messages, i.e. stopping the standard windows popup and doing something else with the message, from within own application.
I am looking at this more from interest than any great need but speedy answers would be appreciated, as it is now that this has caught my attention, and if there is a solution then it will come in very hand in the near funture.

Cheers
J
0
Comment
Question by:jlleigh
  • 2
  • 2
5 Comments
 

Author Comment

by:jlleigh
ID: 10648956
Points will be upped for a usable solution.

thanx

j
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 10661939
Hmmmm....

I don't know...

Is it possible to capture a windows internal text?

If this is possible then you could have a procedure that scans for the Window caption (i think it is 'Message Service' or somthing similar) then call a procedure that retrieves the internal text.

To scan for the window use the findwindow function:

if findwindow(nil,pchar('Message Service')=0 then //(Or null maybe - check)
    exit
else
GET_WINDOW_INTERNAL_TEXT

Hope this may help others be more specific and possibly answer your question

Regards,

Hypoviax
0
 
LVL 5

Accepted Solution

by:
Hypoviax earned 20 total points
ID: 13190005
Hmmm... well i sort of gave an answer.

You could use print screen to capture the message when the window appears (scan for 'Message Service' then when found print screen using key_event).

I reckon i deserve the 20 points ;-)

Hypoviax
0
 

Author Comment

by:jlleigh
ID: 13211967
I will accept your answer, as the findwindow functionality came in useful elsewhere.
I really wanted to intercept and stop the netsend message being displayed, and re direct it else where... but that was an old project and is long forgotten now, and we ended up using alternatives anyway, as we could find no suitable way of properly catching teh netsend message 'cleanly'

J
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question