Jump to content

Kill program sitting in SysTray


Guest Aramis
 Share

Recommended Posts

Greetings,

I just discovered AutoIt. It's GREAT and I think it can solve my problem:

I need to check if a particular program is loaded and sitting in the SystemTray. If it is, I need to kill (unload) it in order to install a new version of it.

I know how to close its window if one is open but closing the window will not unload it and remove its instance from the tray.

Anyone enclined to give some help to a Newbie?

PS:For info, the program has a SysTray icon right-click menu with a "Terminate" option which unloads it from memory.

Any help/pointers appreciated.

Dan

Link to comment
Share on other sites

Look up the help file for processexists and processclose ?

Something like

If Processexists("notepad.exe") Then
      Processclose ("notepad.exe")
     ;Install new version 
     ;Run new version
     ;Ect
Else
      MsgBox(4096,"", "Notepad isnt running")
Endif

Hope that helps.

Edited by nova
Link to comment
Share on other sites

Look up the help file for processexists and processclose ?

Something like

If Processexists("notepad.exe") Then
      Processclose ("notepad.exe")
    ;Install new version 
    ;Run new version
    ;Ect
Else
      MsgBox(4096,"", "Notepad isnt running")
Endif

Hope that helps.

<{POST_SNAPBACK}>

Nova,

This is exactly what I needed! Problem solved. :idiot:

Thank a bunch!

Dan

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...