• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 23. Keyboard Control > Using Key Codes to Control Action Using the Keybo...

Using Key Codes to Control Action Using the Keyboard

In this task, you will use the key codes you found earlier to create a handler that moves the drawing dot around the stage. As part of this script, you will use the Lingo elements keyDown, the keyCode, and the locH.

The keyDown event is a standard Lingo message that is sent when a key is pressed. The the keyCode system function returns the numerical code for the last key pressed. For example, the key code for the left arrow key is 123. Note that key codes are automatically generated by the computer's operating system and cannot be controlled or set by you.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint