Jump to content

Lotus Notes Help


Recommended Posts

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...

Link to comment
Share on other sites

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...
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...