-
-
Notifications
You must be signed in to change notification settings - Fork 5
CurrentProfile
Anthony Headley edited this page May 4, 2020
·
1 revision
CurrentProfile() : UserProfile
Returns the UserProfile for the currently logged in user
Name | Type | Description | Optional |
---|
Type | Description |
---|---|
UserProfile | Returns the current users UserProfile |
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)