What It Does
System:lockScreen is Blocked by ScriptPolicyGuard: high-impact screen lock command. It can appear in the compatibility inventory, but it must not be used in normal macro code or AI-generated code.
System:lockScreen is Blocked by ScriptPolicyGuard: high-impact screen lock command. Do not use it in normal macro code or AI-generated code.
System:lockScreen is Blocked by ScriptPolicyGuard: high-impact screen lock command. 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:lockScreen is blocked by ScriptPolicyGuard
print("System:lockScreen 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:lockScreen is blocked by Macro Handler policy.
print("System:lockScreen is blocked by ScriptPolicyGuard")
requestStop()-- System:lockScreen is blocked by Macro Handler policy.
print("System:lockScreen is blocked by ScriptPolicyGuard")
requestStop()This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:lockScreen is blocked by Macro Handler policy.
print("System:lockScreen is blocked by ScriptPolicyGuard")
requestStop()This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:lockScreen is blocked by Macro Handler policy.
print("System:lockScreen is blocked by ScriptPolicyGuard")
requestStop()This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:lockScreen is blocked by Macro Handler policy.
print("System:lockScreen is blocked by ScriptPolicyGuard")
requestStop()