Sha256: 93d1d37ba36401d26f2e97e95a12a5134951ac24fb0e8b9b6f852b4ce0192238
Contents?: true
Size: 683 Bytes
Versions: 21
Compression:
Stored size: 683 Bytes
Contents
# -*- encoding : utf-8 -*- module Lolcommits class CaptureWindows < Capturer def capture # DirectShow takes a while to show... at least for me anyway delaycmd = ' /delay 3000' if capture_delay > 0 # CommandCam delay is in milliseconds delaycmd = " /delay #{capture_delay * 1000}" end _stdin, stdout, _stderr = Open3.popen3("#{executable_path} /filename #{snapshot_location}#{delaycmd}") # looks like we still need to read the output for something to happen stdout.read end def executable_path File.join(Configuration::LOLCOMMITS_ROOT, 'vendor', 'ext', 'CommandCam', 'CommandCam.exe') end end end
Version data entries
21 entries across 21 versions & 2 rubygems