keyboard_key_press

Simulates the press of a given key.

Syntax:

GML Code Example

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:

GML Code Example

keyboard_key_press(vk_space);
 

This will simulate a spacebar press.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here