Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
MediaMacros Devcon Presentation 2002 - Imaging Lingo
Popup Score
Playthrough
Export Text for proofing
Dither Black and White Image - Imaging Lingo
Versiown
myMailTo
VTC Training CD for Macromedia Director 6
Group of Sprite Mover
tea Xtra
 

 

 

Behavior Return the name of the current user

Added on 10/2/2000

 

Compatibilities:
D7 D8 PC Script

Required Xtras:
Buddy API

This item has not yet been rated

Author: MediaMacros (website)

This function will return the name of the current logged in user. Call like this... currentUser = returnCurrentUser()

on returnCurrentUser me
  if baVersion( "windows" ) >= 4 then
    return baReadRegString("SoftwareMicrosoftWindows NTCurrentVersionWinlogon", "DefaultUserName", "RSI", "HKEY_LOCAL_MACHINE")
  else if baVersion("windows") >= 4 then    
    return baReadRegString("NetworkLogon", "UserName", "", "HKEY_LOCAL_MACHINE")
  end if
end

on getBehaviorDescription me
  describe = "This function will return the name of the current logged in user.  Call like this..." & return & "currentUser = returnCurrentUser()"
  return describe
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail