Jump to content




io.read() between 2 x coordinates


  • You cannot reply to this topic
5 replies to this topic

#1 TheRockettek

  • Members
  • 547 posts
  • LocationRem is best girl

Posted 01 August 2016 - 03:43 PM

For a program i am making a part which needs user input in a box but i cant find out a way to make it that read() only shows between the 2 x coordinates instead of doing the entire screen. Im quite stumped. Can anyone help? :)

#2 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 01 August 2016 - 07:17 PM

so you want an input box?

#3 TheRockettek

  • Members
  • 547 posts
  • LocationRem is best girl

Posted 01 August 2016 - 08:15 PM

Ya. Pretty much

#4 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 01 August 2016 - 08:57 PM

Step 1) make a window at those coordinates
Step 2) redirect
Step 3) reead()

#5 TheRockettek

  • Members
  • 547 posts
  • LocationRem is best girl

Posted 01 August 2016 - 09:08 PM

Except i want it like you type and once you click out the area it stops typing :/
(Like a normal input box)

#6 Emma

  • Members
  • 216 posts
  • Locationtmpim

Posted 02 August 2016 - 03:31 AM

View PostTheRockettek, on 01 August 2016 - 09:08 PM, said:

Except i want it like you type and once you click out the area it stops typing :/
(Like a normal input box)

There is no built in implementation for this, you will have to write your own, or you can find someone else's. I have an implementation of this here: http://pastebin.com/D7TeDJJH, it would need a tiny bit of tweaking to let you click out of it but it shouldn't be too hard (Just add a mouse_click event listener).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users