37 posts
Posted 05 January 2015 - 09:05 PM
How do I get
this on a monitor with working touch screen. I am in minecraft 1.6.4 using the techworld 2 modpack. I am a lua noob so I can't do anything good with it.
Thanks in advance :)/>
3057 posts
Location
United States of America
Posted 05 January 2015 - 10:22 PM
Add a term.redirect( mon ) at the top of the script, also change this line (284, 243, 152):
if events[1] == "mouse_click" and events[2] == 1 then
To this
if event[1] == "monitor_touch" and events[2] == "name_of_monitor" then
*name_of_monitor should be a side, ei "right", unless it is connected via networking cables, in which case it'll be monitor_#.
This
should get this working, although it won't resize to fit the monitor - the coordinates are hardcoded.
8543 posts
Posted 05 January 2015 - 10:25 PM
You could just use the monitor command. If the monitor is on top of the computer and the program is named keypad, run this in the shell:
monitor top keypad
Much easier than trying to edit it!