Skip to content

CurrentProfile

Anthony Headley edited this page May 4, 2020 · 1 revision

CurrentProfile() : UserProfile

Brief:

Returns the UserProfile for the currently logged in user

Paramiters:

Name Type Description Optional

Returns:

Type Description
UserProfile Returns the current users UserProfile

Examples:

local result = ""
-- check the status of the Screen Encoder
if CurrentProfile().ScreenEncoder then  -- returns true/false
    result = "On"
else
    result = "Off"
end
Echo("Before Encoder is " .. result)

-- invert the Screen Encoder
CurrentProfile().ScreenEncoder = not CurrentProfile().ScreenEncoder

-- check the status of the Screen Encoder
if CurrentProfile().ScreenEncoder then
    result = "On"
else
    result = "Off"
end
Echo("After Encoder is " .. result)
Clone this wiki locally