Update event.lua

This commit is contained in:
Igor Timofeev 2015-09-05 11:46:53 +03:00
parent c0a411a104
commit b11d1b71b6

View File

@ -230,9 +230,11 @@ end
function event.takeScreenshot() function event.takeScreenshot()
if keyboard.isKeyDown(100) then if keyboard.isKeyDown(100) then
computer.beep(1500) computer.beep(1500)
image.screenshot("screenshot.png") local screenshotPath = "screenshot.png"
image.screenshot(screenshotPath)
computer.beep(2000) computer.beep(2000)
computer.beep(2000) computer.beep(2000)
computer.pushSignal("screenshot", screenshotPath)
end end
end end