GBMacMan Posted July 21, 2008 Share Posted July 21, 2008 I have searched through the forums but cant quite find the code snippet I need. I have been able to automate the installation of the connector, launch Notes, and pass the user password to a configured client. My problem is automating the Actions menu. I understand that it is not a standard Windows menu (therefore, WinMenuSelectItem doesn't work). I can send ALT-A to get to it but cannot send 'O' for Salesforce Options because the list is context sensitive. There may be more than one option triggered by 'O' depending on what part of Notes is open (ie, welcome, inbox, etc.) Here's the latest test code: CODEOpt("WinTitleMatchMode", 4) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase WinWait("[CLASS:NOTES]") If Not WinActive("[CLASS:NOTES]") Then WinActivate("[CLASS:NOTES]") WinWaitActive("[CLASS:NOTES]") ;Menu Actions-Salesforce Options WinMenuSelectItem("[CLASS:NOTES]","", "&Actions", "Salesforce &Options") ;Send (!ao) ;cant use send because of multiple 'O' and context sensitive Your help is greatly appreciated... Link to comment Share on other sites More sharing options...
GBMacMan Posted July 22, 2008 Author Share Posted July 22, 2008 I have searched through the forums but cant quite find the code snippet I need. I have been able to automate the installation of the connector, launch Notes, and pass the user password to a configured client. My problem is automating the Actions menu. I understand that it is not a standard Windows menu (therefore, WinMenuSelectItem doesn't work). I can send ALT-A to get to it but cannot send 'O' for Salesforce Options because the list is context sensitive. There may be more than one option triggered by 'O' depending on what part of Notes is open (ie, welcome, inbox, etc.) Here's the latest test code: CODEOpt("WinTitleMatchMode", 4) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase WinWait("[CLASS:NOTES]") If Not WinActive("[CLASS:NOTES]") Then WinActivate("[CLASS:NOTES]") WinWaitActive("[CLASS:NOTES]") ;Menu Actions-Salesforce Options WinMenuSelectItem("[CLASS:NOTES]","", "&Actions", "Salesforce &Options") ;Send (!ao) ;cant use send because of multiple 'O' and context sensitive Your help is greatly appreciated... Link to comment Share on other sites More sharing options...
Paulie Posted July 22, 2008 Share Posted July 22, 2008 ControlSend() ? Link to comment Share on other sites More sharing options...
GBMacMan Posted July 22, 2008 Author Share Posted July 22, 2008 ControlSend doesn't work because I don't know how each user opens Lotus Notes and the menu is context sensitive to the screen showing. The option I want may not be the only one with that letter. 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