Zum Hauptinhalt gehen

Suche

Suche

Vb Script For Unique Picture For User

Kommentare

2 Kommentare

  • Avatar
    Ian Cummings
    Moderator

    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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.