726 posts
Location
Rem is best girl
Posted 01 August 2016 - 04: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? :)/>
2427 posts
Location
UK
Posted 01 August 2016 - 08:17 PM
so you want an input box?
726 posts
Location
Rem is best girl
Posted 01 August 2016 - 09:15 PM
Ya. Pretty much
3057 posts
Location
United States of America
Posted 01 August 2016 - 09:57 PM
Step 1) make a window at those coordinates
Step 2) redirect
Step 3) reead()
726 posts
Location
Rem is best girl
Posted 01 August 2016 - 10:08 PM
Except i want it like you type and once you click out the area it stops typing :/
(Like a normal input box)
218 posts
Location
tmpim
Posted 02 August 2016 - 04:31 AM
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).