io.read() between 2 x coordinates
Started by TheRockettek, Aug 01 2016 03:43 PM
5 replies to this topic
#1
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
Posted 01 August 2016 - 07:17 PM
so you want an input box?
#3
Posted 01 August 2016 - 08:15 PM
Ya. Pretty much
#4
Posted 01 August 2016 - 08:57 PM
Step 1) make a window at those coordinates
Step 2) redirect
Step 3) reead()
Step 2) redirect
Step 3) reead()
#5
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)
(Like a normal input box)
#6
Posted 02 August 2016 - 03:31 AM
TheRockettek, 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)
(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).
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











