Thread: News

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Location
    Behind you
    Posts
    19
    Rep Power
    0

    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:
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    36
    Rep Power
    11
    I would simply disable it, you can do so by going here: http://www.lantalk.net/disable_messenger.php
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Location
    Behind you
    Posts
    19
    Rep 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?
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,643
    Rep Power
    4248
    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

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Location
    Behind you
    Posts
    19
    Rep 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!!!! -.-)
  10. #6
  11. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,643
    Rep Power
    4248
    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.
    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

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo