Solved

Capturing NetSend messages

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now