General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion XMetal macro javascript get current user name

  • akheiljain

    XMetal macro javascript get current user name

    Participants 0
    Replies 1
    Last Activity 7 years, 7 months ago

    We have a macro for XMetal with Application.CurrentUserName which returned the logged in user in XMetal 8.0. Since we updated to XMetal 9.0, the Application.CurrentUserName return null. Wondering what has changed and how I can get the currentusrname in a XMetal Macro.

    Reply

    Derek Read

    Reply to: XMetal macro javascript get current user name

    This API returns the value set for the “Name” value in the  “Current User” section in the Options dialog (Tools > Options).
    The value is stored in the file %appdata%SoftQuadXMetaL9.0xmetal90.ini as follows:
    user_name = [string]

    If it is returning an empty string that suggests the value is not set.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support