{"identifier":40922,"topic":"Commands","name":"lock","text":"<code><pre>lock {messages|recent|screen}\nlock error dialogs\n<\/pre><\/code>\n<code>Lock messages <\/code>has the same effect as<code> set lockMessages to true<\/code>: it prevents HyperCard from sending<code> open,<\/code> <code>close, suspend, <\/code>and<code> resume <\/code>system messages along the message-passing path. <br><br>\n\n <code>Lock recent <\/code>has the same effect as<code> set lockRecent to true<\/code>: it prevents HyperCard from keeping  a visual record of cards visited by the user (or a handler) in the Recent Card dialog box. <br>\n<br>\n<code>Lock screen<\/code> has the same effect as setting the property<code> lockScreen <\/code>to <code>true<\/code>: it prevents HyperCard from updating the screen. <br><br>\n\n <code>Lock error dialogs <\/code>prevents error dialog boxes from appearing; instead, the message<code> errorDialog <i>errorMessage<\/i> <\/code>is sent to the current card. <code> <br><br>\n\n <\/code>Locking is automatically unlocked at idle time. <br>\n","related":{"38981":"go","75037":"lockMessages","75404":"lockRecent","75546":"lockScreen","50046":"unlock"},"examples":"","demo":"on mouseUp\n   -- with the screen not locked:\n   hide bkgnd button \"Run the Script\"\n   wait 20\n   hide bkgnd button \"Close\"\n   wait 20\n   hide bkgnd button id 57\n   wait 20\n   hide bkgnd field \"Demo Script\"\n   wait 20\n   hide bkgnd button \"Panel\"\n   wait 30\n   --with the screen locked:\n   <b>lock screen<\/b>\n   show bkgnd button \"Panel\"\n   show bkgnd field \"Demo Script\"\n   show bkgnd button id 57\n   show bkgnd button \"Close\"\n   show bkgnd button \"Run the Script\"\n   unlock screen with checkerboard\n end mouseUp\n ","debug":{"9":["lock {messages|recen"],"10":["Lock screen has the "]}}