Sha256: bf9e23fdcd44a01030f98d6199bfa16907b668dc80fd8620cd57b7d268b5cdc2

Contents?: true

Size: 617 Bytes

Versions: 44

Compression:

Stored size: 617 Bytes

Contents

module Lolcommits
  class CaptureWindows < Capturer
    def capture
      commandcam_exe = File.join Configuration::LOLCOMMITS_ROOT, "vendor", "ext", "CommandCam", "CommandCam.exe"
      # 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
      _, r, _ = Open3.popen3("#{commandcam_exe} /filename #{snapshot_location}#{delaycmd}")
      # looks like we still need to read the output for something to happen
      r.read
    end

  end

end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
lolcommits-0.5.0 lib/lolcommits/capture_windows.rb
lolcommits-0.5.0.pre3 lib/lolcommits/capture_windows.rb
lolcommits-0.5.0.pre2 lib/lolcommits/capture_windows.rb
lolcommits-0.5.0.pre1 lib/lolcommits/capture_windows.rb
lolcommits-0.4.6 lib/lolcommits/capture_windows.rb
lolcommits-0.4.6.pre1 lib/lolcommits/capture_windows.rb
lolcommits-0.4.5 lib/lolcommits/capture_windows.rb
lolcommits-0.4.4 lib/lolcommits/capture_windows.rb
acmcommits-1.1.4 lib/lolcommits/capture_windows.rb
acmcommits-1.1.3 lib/lolcommits/capture_windows.rb
acmcommits-1.1.2 lib/lolcommits/capture_windows.rb
acmcommits-1.1.1 lib/lolcommits/capture_windows.rb
acmcommits-1.1.0 lib/lolcommits/capture_windows.rb
lolcommits-0.4.4pre1 lib/lolcommits/capture_windows.rb
acmcommits-1.0.17 lib/lolcommits/capture_windows.rb
acmcommits-1.0.16 lib/lolcommits/capture_windows.rb
acmcommits-1.0.15 lib/lolcommits/capture_windows.rb
acmcommits-1.0.14 lib/lolcommits/capture_windows.rb
acmcommits-1.0.13 lib/lolcommits/capture_windows.rb
acmcommits-1.0.12 lib/lolcommits/capture_windows.rb