Thread: Closing system tray program

  1. #1
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339

    Closing system tray program

    Hey,

    I have microsoft messenger running in the system tray(with the main window hidden), i need to close the program and delete the icon from the tray.

    Does anyone know how i can go about this?

    Thanks
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  2. #2
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    right click the icon and click exit...

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    You could try some methods to find the App and call TerminateProcess()....bit nasty...

    Better...remover the startup from the registry under

    Code:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    Personally, I like the app telling me when I have some hotmail, so I kind of like it around....If you like this too, you can appear invisible by default by using a script I wrote....

    It works in Windows Scripting Host, and grabs an interface to Messenger......then it makes you appear offline...

    I put it in my startup folder on My pc at work..... so on logon, it waits for MSM to connect and logon, then changes the status....

    Not very good if you are on dialup, but if you connect to the web on logon, its quite effective...

    The script is dowloaded from and discribed here

  4. #4
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    oh...

  5. #5
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Thanks alot fordy ill try that out
    TNT
    You Can Stop Me, But You Cant Stop Us All

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Replies: 2
    Last Post: 07-27-2007, 12:48 PM
  3. System Tray - minimizing
    By calpol2004 in forum Windows Programming
    Replies: 2
    Last Post: 09-07-2004, 09:44 AM
  4. Need Help using the system tray
    By calpol2004 in forum Windows Programming
    Replies: 1
    Last Post: 08-31-2004, 06:45 AM
  5. Replies: 5
    Last Post: 08-22-2002, 03:32 PM