Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Open File WIth Associated Application
Popup Xtra
markerXtra
123 Flash Menu
StuntRacer
Drag and Droop
QTGrab
Drag Sprite with Hotspot
RadioGroup
macromedia.director.lingo
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail