Sha256: af3bd28ba3a328e6bce5dd74ca9a1b66cf484cfc154c701ed4acff490dffe448
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
module FFMPEG module Windows def window_titles(application) FFMPEG.logger.debug "Retrieving available windows for: #{application}" WindowGrabber.new.available_windows_for application end class WindowGrabber def available_windows_for(application) list = `tasklist /v /fi "imagename eq #{application}.exe" /fo list | findstr Window` .split("\n") .reject { |title| title == 'Window Title: N/A' } list.map { |i| i.gsub('Window Title: ', '') } # Make it user friendly end end end # module Windows end # module FFMPEG
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffmpeg-screenrecorder-1.0.0.beta2 | lib/ffmpeg/windows.rb |