Jump to content
Sign in to follow this  
Guest Aramis

Kill program sitting in SysTray

Recommended Posts

Guest Aramis

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

Share this post


Link to post
Share on other sites
Nova

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

Share this post


Link to post
Share on other sites
Guest Aramis

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.