Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connector Script

Status
Not open for further replies.

Mainco

Technical User
Aug 22, 2002
15
AU
I'm writing a script for MSO261 and I want it to approve invoices - on the screen it is a button in the menu,
within the Buffer Data I think as
FKEYS2I (O 60 *** ) = F8-Approve Invoice

Can anyone suggest how I can trigger this off.
 
Execute the command "Approve Invoice" as opposed to an "OK" or "Cancel". e.g. ...Screen.MSO.Commands("APPROVE INVOICE").execute
The case of the command text is not important in a Windows COM environment.

Drew
 
As Drw says, the case is not important in a Windows COM environment, but the exact text is.

If Drw's suggested code doesn't work, then add some code to find out exactly what commands are available.

eg. something like this
Code:
sFuncKeys = "Commands (Function Keys) on " & Trim$(oMimsx.Screen.MSO.Name) & " are: " & vbCrLf
For iFuncKeys = 1 To oMimsx.Screen.MSO.Commands.Count
  sFuncKeys = sFuncKeys & CStr(iFuncKeys) & " " & oMimsx.Screen.MSO.Commands(iFuncKeys).Name & vbCrLf
Next iFuncKeys
Msgbox sFuncKeys
 
Thanks for the Information - it's been most helpful
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top