Solved

Capturing NetSend messages

Posted on 2004-03-22
5
183 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
drawing animated level bar based on numbers 3 111
Delphi Yen format 3 58
Delphi...Split view - idea? 1 113
Installshield for Embarcadero EX 10.1 Berlin 4 72
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

680 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