Simulating keyboard presses that write a whole sentence

Godot Version



I want to find a way to simulate a whole sequence of words in a sentence with the Input.action_press(), but wasn’t able to, since an action needs to be created for each letter. But even creating an action with a specific key wasn’t that clear how to do. Does anyone know a way of how to do that effectively in gdscript?

Hi! Can you tell us more about the scenario? For now it seems much simpler to just update the text using a timer or so, to put one letter after another in the textbox. Do you need the signals of a key press?
You could also generate an InputEventKey and parse it with Input.parse_input_event()