Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 29th, 2004, 09:45 AM
Elbryan Elbryan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Behind you
Posts: 19 Elbryan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to Elbryan
Thumbs down 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.

Reply With Quote
  #2  
Old June 29th, 2004, 10:30 AM
Mortamer Mortamer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 36 Mortamer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 46 sec
Reputation Power: 10
I would simply disable it, you can do so by going here: http://www.lantalk.net/disable_messenger.php

Reply With Quote
  #3  
Old June 29th, 2004, 11:12 AM
Elbryan Elbryan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Behind you
Posts: 19 Elbryan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to Elbryan
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?

Reply With Quote
  #4  
Old June 29th, 2004, 01:45 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 9th Plane (9000 - 9499 posts)
 
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 9,383 Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 1 Day 20 h 49 m 30 sec
Reputation Power: 4080
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

Reply With Quote
  #5  
Old June 30th, 2004, 02:27 AM
Elbryan Elbryan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Behind you
Posts: 19 Elbryan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to Elbryan
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!!!! -.-)

Reply With Quote
  #6  
Old July 2nd, 2004, 12:55 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 9th Plane (9000 - 9499 posts)
 
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 9,383 Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level)Scorpions4ever User rank is General 46th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 1 Day 20 h 49 m 30 sec
Reputation Power: 4080
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > News

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap