Update event.lua

This commit is contained in:
Igor Timofeev 2015-09-05 11:31:20 +03:00
parent deb040a98e
commit 64c189f0ef

View File

@ -228,11 +228,11 @@ function event.shouldSoftInterrupt()
end
function event.takeScreenshot()
if keyboard.isControlDown() and keyboard.isShiftDown() and keyboard.isKeyDown(keyboard.keys["1"]) then
if keyboard.isKeyDown(100) then
computer.beep(200)
image.screenshot("screenshot.png")
computer.beep(500)
computer.beep(500)
image.screenshot("screenshot.jpg")
computer.beep(1200)
computer.beep(1200)
end
end