Aller au contenu principal

Recherche

Recherche

Vb Script For Unique Picture For User

Commentaires

2 commentaires

  • Avatar
    Ian Cummings
    Modérateur

    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

Vous devez vous connecter pour laisser un commentaire.