Modify Function Keys

Is there any option to modify the string for a particular key in Function Keys[.mnu] using VBA?

Parents Reply Children
  • Hai Jon/Jan,

    I think that ActiveWorkspace.ConfigurationVariableValue ("MS_FKEYMNU") will show the default/startup path of function key menu. But the "attached FunctionKeyMenu"  path may vary[if the user manually attach/opened a FunctionKeyMenu from another location]. Is there any option to identify that (present FunctionKey)path?

  • Unknown said:
    Is there any option to identify that (present FunctionKey) path?

    You'll need this MDL function: mdlFuncKey_currentMenu

    Put this declaration at the top of your VBA code …

    Declare Sub mdlFuncKey_currentMenu Lib "stdmdlbltin.dll" ( ByVal filename As String )

    Use it like this …

    
    ' ---------------------------------------------------------------------
    '   FunctionKeyMenuPath
    '    VBA wrapper round MDL function
    '   Returns:    String the path to the current function key menu
    ' ---------------------------------------------------------------------
    Public Function FunctionKeyMenuPath() As String
      Dim path As String
      Const MAX_PATH As Long = 254
      path = Space(MAX_PATH)
      mdlFuncKey_currentMenu path
      FunctionKeyMenuPath = Trim(Left(path, InStr(path, Chr(0)) - 1))
    End Function 

     
    Regards, Jon Summers
    LA Solutions