|

ResultVariable


When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.


image

System.IsKeyDown

OverviewExamples

boolean System.IsKeyDown ( number Key )


De s cr ip t ion


Determines if a specific key on the keyboard or a specific mouse button is down.


P arame t er s


Key


(number) The key or button to check. If the desired key is a letter or digit (A-Z, a-z, or 0-9), this value must be the character's ASCII value. For all other keys (and mouse buttons), this value must be set to the virtual key code.


image

Tip: In your scripts folder (typically ..\Program Files\AutoPlay Media Studio 8\Gallery\Scripts) there is a pre-made table of virtual key codes (VirtualKeyCodes.lua) that you can include in your project using an Application.LoadScript action.


Re t u r n s


(boolean) True if the specified key is down, false if it is up.


|