Jump to content

problem : how to set the input focus?


gokujems

Recommended Posts

Hi, i'm making this post to expose my problem. I'm actually trying to make a function that will return the letter that could be written on the chatbox or on a gui edit for exemple. I don't really know how to make it but i tried to use a gui edit to perform this. Here i explain : I want to set the input focus on a single edit gui whithout any need of clicking on that gui. I want the letter to be drawed on that gui just as if i was editing that edit box but whithout having to click on it.

That's my plan to make a function that could return the caracter you want to use like &, ", ', (, { , é, °, à, %, _, etc...

Thanks for having red this post.

Link to comment

Thanks for all the answers but guiEditSetCaretIndex and guiMemoSetCaretIndex only set the position of the caret into a gui and don't enable the input on that gui. Well, if there's no way to make it, i wonder if it's possible to make a function that could return the symbol of a pressed key, i mean just like the chatbox when you write something, it directly detects what you write. For exemple, if you wanna write " çàéurj,éàthgé,)&=578&48"8&5 " then you'll see it on the chat and that's actually what i want to return from the function.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...