IsKeyPressed()

Syntax:

IsKeyPressed( Key1, Key2, … )

Return:

true if a specified key is pressed down. Otherwise, false.

Parameters:

Key1, Key2, – a single character string representing a text key (e.g. a, b, c ) or one of special keys listed below. More than one Key can be included within each function. Each Key should be separated by a comma. This parameter is required.

Special Keys:

One or more of the following strings: "Up", "Down", "Left" or "Right", representing the keyboard arrow keys. As well as one or more of the following: "Control", "Shift","Alt", "Backspace","Enter", "Caps","Pause", "Tab","Escape", "PageUp","PageDown", "End","Home", "Print","Insert", "Delete","Help", "LeftWin","RightWin", "Add","Multiply", "Subract", "Decimal", "Divide", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15", "F16", "F17", "F18", "F19", "F20", "F21", "F22", "F23", "F24" , "Numpad0", "Numpad1", "Numpad2", "Numpad3", "Numpad4", "Numpad5", "Numpad6", "Numpad7", "Numpad8", "Numpad9", "NumLock"

Remarks:

This function will return true when a specified key is being held down. This function is useful for programming keys to perform different actions in your script.

image\Script_Button.jpgExamples