General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › XMetal macro javascript get current user name
-
akheiljain August 25, 2015 at 3:36 pm
XMetal macro javascript get current user name
August 25, 2015 at 3:36 pmParticipants 0Replies 1Last Activity 7 years, 7 months agoWe 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.
Derek Read August 25, 2015 at 7:23 pm
Reply to: XMetal macro javascript get current user name
August 25, 2015 at 7:23 pmThis 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.
-
AuthorPosts
- You must be logged in to reply to this topic.