SHOW:
|
|
- or go back to the newest paste.
| 1 | - | comp = require("computer") |
| 1 | + | comp = require("computer")
|
| 2 | - | event = require("event") |
| 2 | + | event = require("event")
|
| 3 | - | keyboard = require("keyboard") |
| 3 | + | keyboard = require("keyboard")
|
| 4 | - | |
| 4 | + | |
| 5 | - | function check() |
| 5 | + | function check() |
| 6 | - | |
| 6 | + | |
| 7 | - | if keyboard.isControlDown() and keyboard.isAltDown() then |
| 7 | + | if keyboard.isControlDown() and keyboard.isAltDown() then |
| 8 | - | print("DONT KILL ME") |
| 8 | + | print("DONT KILL ME")
|
| 9 | - | comp.shutdown() |
| 9 | + | comp.shutdown() |
| 10 | - | end |
| 10 | + | end |
| 11 | - | end |
| 11 | + | end |
| 12 | event.listen("key_down", check) |