Guest Aramis Posted December 25, 2004 Share Posted December 25, 2004 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 More sharing options...
Nova Posted December 25, 2004 Share Posted December 25, 2004 (edited) 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 December 25, 2004 by nova Link to comment Share on other sites More sharing options...
Guest Aramis Posted December 25, 2004 Share Posted December 25, 2004 Look up the help file for processexists and processclose ?Something likeIf Processexists("notepad.exe") Then Processclose ("notepad.exe") ;Install new version ;Run new version ;Ect Else MsgBox(4096,"", "Notepad isnt running") EndifHope that helps.<{POST_SNAPBACK}>Nova,This is exactly what I needed! Problem solved. Thank a bunch!Dan Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now