Howto Responding to Key Presses

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Adam
    Indigo Rose Staff Member
    • May 2000
    • 2149

    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
  • Bruce
    Indigo Rose Customer
    • Jun 2001
    • 2134

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

    Comment

    • yosik
      Indigo Rose Customer
      • Jun 2002
      • 1858

      #3
      Help File.
      Search for ASCII.
      Yossi

      Comment

      Working...
      X