Hello there Great People of Computercraft :D/>
im trying to make a program that finds peripherals.
i know i've seen a lot of them around, but i cant find any now :(/>
the part i need to "steal" is the part of the code that finds the peripherals..
what im trying to do with the code, is make a program that finds the peripherals, makes a list (onscreen) and gives the user the option to "enable" the controls/monitoring for that particular peripheral
and is there a page somewhere that lists all the keys on the keyboard that os.pullEvent("key") can use??
best regards
this blind Dusty
^^^^^^^^^^ This part have been solved ^^^^^^^^^^^^
now i have a new question about the Keys event
i made this
line 80 - local event, key = os.pullEvent("key")
line 81 -if key == key.space then
line 82 - local mon = peripheral.wrap(tostring(monside))
line 83 - local bank = peripheral.wrap(tostring(bankside))
line 84 - local rea = peripheral.wrap(tostring(reactorside))
line 85 -end
but the line if key == key.space then gives me an error
startup:81: attempt to index ? (a number value)
ehm.. what have i done wrong :(/>