This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TheEisbaer's profile picture

How can I get Cranium's Numeric PIN on a monitor?

Started by TheEisbaer, 05 January 2015 - 08:05 PM
TheEisbaer #1
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 :)/>
KingofGamesYami #2
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.
Lyqyd #3
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!