The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages - More
> Delphi Programming
|
News
Discuss News in the Delphi Programming forum on Dev Shed. News Delphi Programming forum discussing Delphi related topics including Kylix, C++ Builder, and more. Delphi is a high-performance language, originally based on the PASCAL language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 29th, 2004, 09:45 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Location: Behind you
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
News
Try to write "net send 127.0.0.1 hello" in run.
Sometimes in some computer (if connected in a network) you receive a message.
If a stupid person send to you 100 message, you must click click click click to close the window.
I'm searching a mode to intercept the handle of the form, focus on it, and then automatically press the OK button or simply close it.
If someone know how to do this, is a genius and it will be my best friend :PPPPPP
Vi piacerebbe conoscere l'italiano?  <this is my language> cool no? :P
ah..where's the option to add under my message a short "post"..like scorpion and other member message?
like it:
Quote:
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. |
|

June 29th, 2004, 10:30 AM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 36
Time spent in forums: 2 m 46 sec
Reputation Power: 10
|
|
|

June 29th, 2004, 11:12 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Location: Behind you
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Gustoso!!! --> English --> Cool
Thanks man
But..if i want only to close a series of message..
So..
I want to receive messages..but..in the middle of a conversation, a stupid man send me 100 messages..
I launch my program .. close close..and then restart..no? 
|

June 29th, 2004, 01:45 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
Something like this perhaps:
Code:
procedure TForm1.Button1Click(Sender: TObject);
var
hWnd : THandle;
begin
hWnd := FindWindow(Nil, 'Messenger Service ');
while (hWnd > 0) do
begin
SendMessage(hWnd, WM_CLOSE, 0, 0);
Sleep(500);
hWnd := FindWindow(Nil, 'Messenger Service ');
end;
end;
Note the Sleep() in the middle of the while loop. I put it there because I get one message at a time and when I click OK, it takes a little while before the next message pops up. So I made the program pause for 500 milliseconds before looking for the next window again. Of course, you might need to change the title of 'Messenger Service ' to whatever your Window title looks like (I'm guessing that the message title is in Italian for you.) Also note that the string 'Messenger Service ' has a trailing space at the end of the string. I don't know if that's going to be the same in Italian.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
|

June 30th, 2004, 02:27 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Location: Behind you
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
thank you scorpion..with this example I learned much much things..
And..powerful question.
There's a method to incercept, or retrieve a text from a edit or another control in a window?!?
I made some crack..number serial..the cool things will be to write automatically the serial number in the edit of the application, no?
(ehm..i hope this won't be read by police :P ..i'm only 18!!!! -.-)
|

July 2nd, 2004, 12:55 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
That question is a little out of topic in this thread. If you start up a new thread with a proper title (say something like "Getting handle of child control"), I'll be happy to help you out.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|