Radimus
|
(KiX Supporter)
|
2003-09-09 09:08 PM
|
|
|
|
|
capture net send messages
|
|
does anyone know how to do this sort of thing???
|
Mart
|
(KiX Supporter)
|
2003-09-09 09:33 PM
|
|
|
|
|
Re: capture net send messages
|
|
You mean like this http://www.codeproject.com/csharp/pacanal.asp ? Or just capture the text in it?
Haven't tried it yet but will do on our test network tomorrow at work. [ 09. September 2003, 21:36: Message edited by: R2D2 ]
|
Kdyer
|
(KiX Supporter)
|
2003-09-09 09:34 PM
|
|
|
|
|
Re: capture net send messages
|
|
Rad,
You can always use ALT+PRTSCN or better yet - http://www.structurise.com/kleptomania (not free).
Kent
|
Les
|
(KiX Master)
|
2003-09-09 09:38 PM
|
|
|
|
|
Re: capture net send messages
|
|
Rad, Maybe you should elaborate. I presume you want to use NetSend for inter-process communication. If so, maybe MSMQ is what you seek.
|
Radimus
|
(KiX Supporter)
|
2003-09-09 09:44 PM
|
|
|
|
|
Re: capture net send messages
|
|
basically I want to capture the text from a received net send message...
|
|
Re: capture net send messages
|
|
A simple Ctrl-C in W2K/XP will copy the text only to the clipboard.
|
Radimus
|
(KiX Supporter)
|
2003-09-09 09:50 PM
|
|
|
|
|
Re: capture net send messages
|
|
hmmm.... I think I can work that.
hehehehe
thanks
I tested: quote: --------------------------- Messenger Service --------------------------- Message from WHEELERC to WHEELERC on 9/9/2003 3:57:44 PM
is howard full of shizit? --------------------------- OK ---------------------------
|
|
Re: capture net send messages
|
|
Glad to be of assistance...seems like you were not initially a believer That will teach you.
|
Radimus
|
(KiX Supporter)
|
2003-09-09 09:59 PM
|
|
|
|
|
Re: capture net send messages
|
|
ok.... Do you have a way of reading from the clipboard??
|
Radimus
|
(KiX Supporter)
|
2003-09-09 10:08 PM
|
|
|
|
|
Re: capture net send messages
|
|
apparently Setfocus can't find the messenger window...
|
|
Re: capture net send messages
|
|
Ctrl-V
|
Radimus
|
(KiX Supporter)
|
2003-09-09 10:37 PM
|
|
|
|
|
Re: capture net send messages
|
|
I have some code to parse the output of a pasted 'message'
But I still can't get setfocus to connect and I can't think of a way to read the text without pasting it to a text doc.
code:
$text = ReadFile($temp) $header = split($text[3]) for $l = 5 to ubound($text) - 4 $body = $body + @crlf + $text[$l] next $from = $header[2] $to = $header[4] $date = $header[6] $time = $header[7] + ' ' + $header[8] $body = substr($body,2)
|
Les
|
(KiX Master)
|
2003-09-09 10:59 PM
|
|
|
|
|
Re: capture net send messages
|
|
Seem to recall that AutoIT can read test on dialog boxes. There is a COMmable piece too.
|
Chris S.
|
(MM club member)
|
2003-09-10 12:30 AM
|
|
|
|
|
Re: capture net send messages
|
|
AutoITX can also manipulate the clipboard.
|
Lonkero
|
(KiX Master Guru)
|
2003-09-10 12:50 AM
|
|
|
|
|
Re: capture net send messages
|
|
now, can't you just paste the text to form that like just flashes. show form, do paste on textbox, hide form, read the text.
|
MightyR1
|
(MM club member)
|
2003-09-10 02:11 AM
|
|
|
|
|
Re: capture net send messages
|
|
Rad,
The info is also stored in the eventlog-system... Look for "application popup"
Now how to read the systemlog???
{edit}
UDF --> http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000270 [ 10. September 2003, 02:13: Message edited by: MightyR1 ]
|
MightyR1
|
(MM club member)
|
2003-09-10 02:25 AM
|
|
|
|
|
Re: capture net send messages
|
|
To get the last message (thanks Jens for the UDF):
{edit}
Apolagies for the long lines... [ 26. September 2003, 07:28: Message edited by: MightyR1 ]
|
Lonkero
|
(KiX Master Guru)
|
2003-09-10 02:39 AM
|
|
|
|
|
Re: capture net send messages
|
|
pat, did you manually screw up the font-color or what?
|
Radimus
|
(KiX Supporter)
|
2003-09-10 05:56 AM
|
|
|
|
|
Re: capture net send messages
|
|
I didn't want to use any other utils, but the autoitx.dll does it perfectly...
Please stand by...
|
Radimus
|
(KiX Supporter)
|
2003-09-10 06:22 AM
|
|
|
|
|
Re: capture net send messages
|
|
code:
break on ;$=setconsole("minimize")
$autoIt=CreateObject("AutoItX.Control")
do if $AutoIt.IfWinExist("Messenger Service", "") $=$AutoIt.WinActivate("Messenger Service", "") $=$AutoIt.Send("^c") $=$AutoIt.WinClose("Messenger Service", "") $Paste=$AutoIt.ClipGet() $text=split($paste,@crlf) $header = split($text[3]) $body = '' for $l = 5 to ubound($text) - 4 $body = $body + @crlf + $text[$l] next $from = $header[2] $to = $header[4] $date = $header[6] $time = $header[7] + ' ' + $header[8] $body = substr($body,3) ? $from ? $body ? '----' endif sleep 1 until @error
|
MightyR1
|
(MM club member)
|
2003-09-10 07:29 AM
|
|
|
|
|
Re: capture net send messages
|
|
Rad,
tested mine??
Lonk,
nope, did not screw it up, was surprised myself... Any ideas?
|
Jochen
|
(KiX Supporter)
|
2003-09-10 08:56 AM
|
|
|
|
|
Re: capture net send messages
|
|
Whoa Patrick !
I was blind for about half an hour
Is this PostPrep'd ? please check line 633 (depending on your version) in the source code to match this:
|
Jochen
|
(KiX Supporter)
|
2003-09-10 09:00 AM
|
|
|
|
|
Re: capture net send messages
|
|
hmmm ...
obviously PostPrep is not responsible for it ... Looking at the source of this post there is this statement right before the postprep'd part starts :
fieldset style='background:#66FFFF;'
|
Lonkero
|
(KiX Master Guru)
|
2003-09-11 12:02 AM
|
|
|
|
|
Re: capture net send messages
|
|
responsible of what? pat, do you use your own modded version of 1.0.2? if yes, the font-color is correct it's a bug in 1.0.2
|
MightyR1
|
(MM club member)
|
2003-09-10 06:38 PM
|
|
|
|
|
Re: capture net send messages
|
|
Jochen/Jooel
I indeed used a modded version of postprep1.0.2... Wanted a nice box around the code too.
So is it a bug or a 'behaviour by design'? Is there a workaround???
If not I'll wait for the next release of Postprep.
|
Lonkero
|
(KiX Master Guru)
|
2003-09-10 07:36 PM
|
|
|
|
|
Re: capture net send messages
|
|
dunno when that will happen. 1.1.0 has been on the table from the day 1.0.2 came avail. well, at least almost
the engine for it has been ready for while but... think we are gonna start to wait for 1.0.3 which is has just slight updates to 1.0.2
|