What It Does
System:screenOff is Blocked by ScriptPolicyGuard: maps to screen lock. It can appear in the compatibility inventory, but it must not be used in normal macro code or AI-generated code.
System:screenOff is Blocked by ScriptPolicyGuard: maps to screen lock. Do not use it in normal macro code or AI-generated code.
System:screenOff is Blocked by ScriptPolicyGuard: maps to screen lock. It can appear in the compatibility inventory, but it must not be used in normal macro code or AI-generated code.
Do not use it in production macros. If the user asks for this behavior, state that it is unsupported and stop the macro safely.
Parameter and return details are not actionable here; the call is blocked by the policy gate.
Use logging, user notification, and requestStop() for safe exit instead of this call.
The snippet below is a starter pattern that can be applied directly in runtime flow.
-- System:screenOff is blocked by ScriptPolicyGuard
print("System:screenOff is blocked by policy")
requestStop()From foundation to combined usage, each level is provided as a separate code block so you can copy the level you need and adapt it directly.
This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:screenOff is blocked by Macro Handler policy.
print("System:screenOff is blocked by ScriptPolicyGuard")
requestStop()-- System:screenOff is blocked by Macro Handler policy.
print("System:screenOff is blocked by ScriptPolicyGuard")
requestStop()This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:screenOff is blocked by Macro Handler policy.
print("System:screenOff is blocked by ScriptPolicyGuard")
requestStop()This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:screenOff is blocked by Macro Handler policy.
print("System:screenOff is blocked by ScriptPolicyGuard")
requestStop()This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:screenOff is blocked by Macro Handler policy.
print("System:screenOff is blocked by ScriptPolicyGuard")
requestStop()