跳到主内容

搜索

搜索

Vb Script For Unique Picture For User

评论

2 条评论

  • Avatar
    Ian Cummings
    版主

    Yes, VB Script will be needed.

     

    Create a new picture object that uses a data source.  Set the path for the picture files folder, and for the picture file name choose the multi line or event based VB script data source.  Edit the script to have a conditional Select...Case statement like below where you test the "Application.SystemUserName" property value to get the user of who is logged into Windows:

     

    Select Case Application.SystemUserName
    	Case "Johnny"
    	     value = "Apple.jpg"
    	Case "Karen"
                 value = "Fish.jpg"
    End Select
    
    0
  • Avatar
    Legacy Poster

    That worked fantastically! Thank you so much!

    0

请先登录再写评论。