AllenP Posted September 29, 2006 Share Posted September 29, 2006 (edited) I'm trying to automate closing a program that has no other option than to right click on the systray icon, and click on "Shutdown". Currently, I am using the following code, but it requires that the desktop be unlocked which is a problem because of the screensaver locking for security purposes. #include "SysTray_UDF.au3" $process="AmicusServer.exe" $pos=_SysTrayIconPos(_SysTrayIconIndex($process)) MouseMove($pos[0], $pos[1]) MouseClick("Right") Send("{DOWN}") Send(@crlf) Is there anyway to automate this so that it can happen without the mouse movements and keyboard strokes? Also, is there anyway to get a list of actions from the menus that appear when you right click on the systray icons? Edited September 29, 2006 by AlPo Link to comment Share on other sites More sharing options...
darkshadow791 Posted September 29, 2006 Share Posted September 29, 2006 Would ProcessKill work or do you need to have it shutdown itself? Note Taker Lite - a note taking / converting tool. Link to comment Share on other sites More sharing options...
AllenP Posted September 29, 2006 Author Share Posted September 29, 2006 Would ProcessKill work or do you need to have it shutdown itself?Unfortunately, killing the process leaves the db in a state that requires it to reindex itself on the next startup. Link to comment Share on other sites More sharing options...
darkshadow791 Posted September 29, 2006 Share Posted September 29, 2006 You could try testing with ControlClick... but I'm not sure if it works with anything but windows... Note Taker Lite - a note taking / converting tool. 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