Jump to content

How to know if the player is typing something in a specified GUI


Recommended Posts

Posted

It's so easy and simple, 

For example I created an EDIT

edit = guiCreateEdit(x, y, sX, sY, "title", false, window)

I want to know if the player is typing something in this edit or not, is it possible?

Posted

I wanna do it like;

function isPlayerTypingSomething(edit)

  if blah then

   isTyping = true

 else

   isTyping = false

 end

  return isTyping 

  end

end

 

To check if the localPlayer is typing something in the edit-box or not, if he stops typing it will set isTyping value into false, and if he's typing it will set isTyping value into true, I hope you get it.

Posted
12 hours ago, Leo Messi said:

I wanna do it like;

function isPlayerTypingSomething(edit)

  if blah then

   isTyping = true

 else

   isTyping = false

 end

  return isTyping 

  end

end

 

To check if the localPlayer is typing something in the edit-box or not, if he stops typing it will set isTyping value into false, and if he's typing it will set isTyping value into true, I hope you get it.

Suggestion for this script.

This is a long hassle, here's an easier method.

function isPlayerTyping (player) -- change this
  return blah -- this is the function that checks if he's typing. function returns true/false, result will be the same
end

Much faster C:

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...