keyboard_key_press

Simulates the press of a given key.

Syntax:

keyboard_key_press(key);


Argument Description
key The key to simulate a press of.


Returns: N/A


Description

With this function you can simulate the press of any key on the keyboard. The function accepts any of the vk_ constants as well as the standard keys and even the ascii code.


Example:

keyboard_key_press(vk_space);

This will simulate a spacebar press.


Back: Keyboard Input
Next: keyboard_key_release
© Copyright YoYo Games Ltd. 2018 All Rights Reserved