{"identifier":50046,"topic":"Commands","name":"unlock","text":"<code><pre>unlock {screen|messages|recent}\nunlock error dialogs\n<\/pre><\/code>\n<code>unlock screen with <i>effect<\/i> <\/code>[<i><code>speed<\/i><\/code> ]<code> \u00ac        <\/code>[<code>to <i>image<\/i><\/code> ]<code> unlock screen with visual [effect] \u00ac        <i>effect<\/i> <\/code>[<i><code>speed<\/i><\/code> ]<code> <\/code>[<code>to <i>image<\/i><\/code> ]<code> <br><br>\n\n Unlock screen <\/code>lets HyperCard update the screen after a<code> lock screen <\/code>command. (Click the placeholders<code> <i>effect<\/i>, <i>speed<\/i>,<\/code> and<code> <i>image<\/i> <\/code>to see their possible replacements.) <br><br>\n\n Optionally, you can add a single visual effect. You can lock the screen, perform <br>\n<br>\nactions on the card, and then unlock the screen with a visual effect. <br><br>\n\n <code>Unlock messages <\/code>lets<code> open, close, suspend, <\/code>and<code> resume <\/code>messages traverse the message-passing path. <br><br>\n\n <code>Unlock recent <\/code>lets HyperCard keep  a visual record of visited cards in the Recent Cards dialog box. <br><br>\n\n <code>Unlock error dialogs <\/code>lets HyperCard show error dialog boxes when an error occurs. <br>\n","related":{"38981":"go","40922":"lock","75037":"lockMessages","75404":"lockRecent","75546":"lockScreen"},"examples":"lock screen   -- same as \"set lockScreen to TRUE\"\nunlock screen -- same as \"set lockScreen to FALSE\"\n\n-- Use a visual effect, speed, and image:\nunlock screen with dissolve slowly to inverse\nunlock screen with visual effect dissolve\nunlock screen with visual dissolve\nunlock screen with dissolve\n\n-- Use a variable to hold a visual effect:\nput \"visual effect dissolve\" into effectVariable\nunlock screen with effectVariable\n\nunlock recent\nunlock messages","demo":"on lockUnlockDemo\n    -- Show and hide this field with visual effects:\n    set cursor to watch\n    lock screen\n    hide field \"Demo Script\"\n    unlock screen with shrink to center\n    wait 1 second\n    lock screen\n    show field \"Demo Script\"\n    unlock screen with stretch from center\n end lockUnlockDemo\n ","debug":{"9":["unlock {screen|messa"],"10":["actions on the card,"]}}