Announcement

Collapse
No announcement yet.

Howto Responding to Key Presses

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Howto Responding to Key Presses

    Question:
    Can AutoPlay Media Studio react to a key pressed on the users keyboard?

    Answer:
    You can make your application react to keystrokes using the following instructions:

    1) Go to Page -> Properties -> Script -> "On Key" of the page that you would like to put this functionality.
    2) Find out what the ASCII code of the key that you wish to capture is. There is a full list available from Here .
    3) For our example we will capture the space bar. So from looking at the table in step 2 I can see that the Decimal value is 32.
    4) Now add the following code:
    if e_Key == 32 then
    -- Your code that reacts to this keystroke goes here
    end

  • #2
    "There is a full list available from Here"
    Where?

    Comment


    • #3
      Help File.
      Search for ASCII.
      Yossi

      Comment

      Working...
      X