keyboard_string (Game Maker)

( Game Maker 6.1, 7 )

keyboard_string - last 1024 characters typed by the player.


keyboard_string contains the last 1024 characters typed by the player. It should be noted that keyboard_string works exactly the same as any variable and can be set as well as read.


Example of Use

chatline = keyboard_string;

In this example, all text contained in keyboard_string will be written to chatline.

Resetting keyboard_string

keyboard_string = "";

To reset keyboard_string, all you have to do is set it to an empty string.

Related Pages

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.