Jump to content

Recommended Posts

Posted

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:

CODE
Opt("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...

Posted

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:

CODE
Opt("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...
Posted

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.

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
×
×
  • Create New...