lupusbalo Posted February 10, 2005 Share Posted February 10, 2005 (edited) I'm writing a sript which needs to "properly" close, programs which are running in the SYSTEM tray.EDIT> let's make it a bit more clear: programs in system tray are usualy accessed in 2 ways1- via tray menu (think about firewalls, AV, monitors etc.....) 2- double clicking on tray icon which pops up/restore a windowso in fact what i'd like to do is ...either activate tray menu choose close/Quit o(r whatever it is), then click some message box or window that pops up to set correct options before quiting...double click the appropiate icon (which BTW is not always at fixed coordinates) then send appropriate message(s) to the windowthis also enable to change other options in the program (when not exiting) <EDIT Facts are: - easy to find processes running on the system (Pr..exist? Pr..cList) - easy to "ProcessClose" them - unfortunately, "ProcessClose" actualy KILL them and don't give a chance to do some "housekeeping" (saving...) - no windows exists for these process, which could be "activated" or "sent to" something. from what i've already seen and used in AutoIt up to now i'am sure there is a way i've not found yet THX for help EDIT> That you may provide <EDIT(i found a "special' version dealing with tray menu: very good tools & i'll use them, but it doesn't help in this case.) Edited February 13, 2005 by lupusbalo Link to comment Share on other sites More sharing options...
lupusbalo Posted February 13, 2005 Author Share Posted February 13, 2005 huh..........................actualy, this was a question may be it is - too difficult - just impossible - so obvious that no answer is needed reallyi'm anxiously waiting for some clue.......... Link to comment Share on other sites More sharing options...
sugi Posted February 13, 2005 Share Posted February 13, 2005 - no windows exists for these process, which could be "activated" or "sent to" something. Are you sure about this? Often programs running in the tray have a hidden window you can interact with. If these programs show a normal window that could be used to close the program, then try to simply automate this window and try to use the same commands when the program is only in the tray.from what i've already seen and used in AutoIt up to now i'am sure there is a way i've not found yet Sorry, the tray was not ment to be automated by microsoft, so there's no simple way to interact with programs in the tray. Link to comment Share on other sites More sharing options...
lupusbalo Posted February 14, 2005 Author Share Posted February 14, 2005 Are you sure about this? Often programs running in the tray have a hidden window you can interact with. If these programs show a normal window that could be used to close the program, then try to simply automate this window and try to use the same commands when the program is only in the tray.THXw're right, MOST of them have a window!! (but not all of them) (due to Murphy laws the one i did test the fisrt time have not )I have set up a script to look thru all windows (visible or not) in the system.(they are so many!!)And i'm able now to work on those "sytem tray program" which have one.I still have some others (with no identifiable window) for which the only "access" seems thru tray menu, and i'll need to go thru API's for a workaround Sorry, the tray was not ment to be automated by microsoft, so there's no simple way to interact with programs in the tray.this is what i see 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