Macro Language Reference > Macros > System > userlock
  
userlock
Description
Prevents users from interacting with PTC ALD by locking the keyboard and mouse. A typical use for the userlock macro would be in scripts, to prevent users changing a stream.
Syntax
userlock on_off:o?
on_off
0
Disable user lock
1
Enable user lock - it is not possible to use the keyboard and mouse.
Additional Information
 
Remember, when userlock is enabled both the keyboard and mouse are totally disabled, making it impossible to deactivate the setting manually, although scripts can be run to enable and disable the macro programmatically.