lib/ffmpeg/window_titles.rb
#
# Returns list of window titles in FFmpeg expected format when using Microsoft Windows
#
Returns list of window titles in FFmpeg expected format when using Microsoft Windows
Returns list of window titles in FFmpeg expected format when using Microsoft Windows
def windows_os_window(application)
        titles = `tasklist /v /fi "imagename eq #{application}.exe" /fo list | findstr  Window`
                   .split("\n")
                   .map { |i| i.gsub(FILTERED_TITLES, '') }
                   .reject(&:empty?)
        raise RecorderErrors::ApplicationNotFound, "No open windows found for: #{application}.exe" if titles.empty?
        warn_on_mismatch(titles, application)
        titles
      end
def windows_os_window ( application ) titles = ` tasklist /v /fi "imagename eq  #{ application } .exe" /fo list | findstr  Window ` . split ( "\n" ) . map { | i | i . gsub ( FILTERED_TITLES , '' ) } . reject ( & :empty? ) raise RecorderErrors :: ApplicationNotFound , "No open windows found for: #{application}.exe" if titles . empty? warn_on_mismatch ( titles , application ) titles end
Returns list of window titles in FFmpeg expected format when using Microsoft Windows
Returns list of window titles in FFmpeg expected format when using Microsoft Windows
application