{"identifier":49918,"topic":"Commands","name":"type","text":"<code>type <i>text<\/i><\/code> <code>type <i>text<\/i> with commandKey<\/code> <br><br>\n\n The<code> type <\/code>command<code> <\/code>acts exactly as if the user had typed<code> <i>text<\/i> <\/code>from the keyboard.  <br><br>\n\n The text appears in the Message box when it\u2019s visible (or also when it\u2019s hidden if<code> blindTyping <\/code>is set to <code>true<\/code>). <br><br>\n\n To type text into a field or to add paint text, a handler must first set the insertion point (using either the<code> select <\/code>or<code> click at <\/code>command). <br>\n<br>\nTo perform a menu command, use the form<code> type <i>text<\/i> with commandKey<\/code>. For example, if you have a graphic on the Clipboard, you can paste it with the command <br><br>\n\n <code>type \"V\" with commandKey<\/code> <br>\n","related":{"32047":"click at"},"examples":"type \"Hello there world\" -- in the Message box\n\nselect before text of card field 1\ntype \"Hello there world\"\n\ntype \"P\" with commandKey -- print card  \ntype \"V\" with commandKey,shiftKey -- paste a field and its text","demo":"on typeIntoMe\n   show bkgnd field \"demo field\"\n   set the lockText of bkgnd field \"demo field\" to false\n   select text of bkgnd field \"demo field\"\n   type line 6 of bkgnd field \"Help Text A\"\n   type return & return & \"Click the mouse to continue...\"\n   select empty\n   wait until the mouseClick\n   hide bkgnd field \"demo field\"\n   set the lockText of bkgnd field \"demo field\" to true\n end typeIntoMe\n ","debug":{"9":["type text\rtype text "],"10":["To perform a menu co"]}}