From b11d1b71b61bcaf0a4bf82c31ddc04294ca8f09c Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sat, 5 Sep 2015 11:46:53 +0300 Subject: [PATCH] Update event.lua --- lib/event.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/event.lua b/lib/event.lua index f18a1228..fffd12be 100644 --- a/lib/event.lua +++ b/lib/event.lua @@ -230,9 +230,11 @@ end function event.takeScreenshot() if keyboard.isKeyDown(100) then computer.beep(1500) - image.screenshot("screenshot.png") + local screenshotPath = "screenshot.png" + image.screenshot(screenshotPath) computer.beep(2000) computer.beep(2000) + computer.pushSignal("screenshot", screenshotPath) end end