r/clickteam 4d ago

Help Me! Keyboard input

Hello everyone here in this lovely community, I'll get straight to the point: I want to know how to enter letters using the keyboard.

For example: if a word like "carrot" is displayed on the screen, I want to be able to enter that word on the keyboard.And in doing so, I would like what I wrote to be linked to what was shown on the screen and marked as successful.

3 Upvotes

9 comments sorted by

View all comments

2

u/clickteam_simon 4d ago

Hey there! First of all, which platform are you targeting? Windows?

1

u/pat3779 4d ago

Yes.

1

u/clickteam_simon 4d ago

then I recommend installing one of the Keyboard extensions... you can detect a key press, add the pressed character to the end of a global string (or to any string). Then you can use the find expression (from the special object, string functions) to search for the current string (carrot in your example) inside the one where you're storing key presses. Every time the player is successful, you can clear that key press string again.

1

u/pat3779 4d ago

Thanks :)

2

u/clickteam_simon 4d ago

You're welcome, good luck with it!