Sha256: f76f916284237148b7431603773a56304ac79e5cb18273adebd742a3659cf168
Contents?: true
Size: 797 Bytes
Versions: 14
Compression:
Stored size: 797 Bytes
Contents
# taken from https://github.com/rdp/open-source-directshow-screen-capture-filter/tree/master/configuration_setup_utility class SetupDirectshowFilterParams Settings = ['height', 'width', 'start_x', 'start_y'] def initialize require 'win32/registry' @screen_reg = Win32::Registry::HKEY_CURRENT_USER.create "Software\\os_screen_capture" # LODO .keys fails? end def set_single_setting name, value raise unless Settings.include?(name) raise unless value.is_a? Fixnum # raise value.to_s if value < 0 @screen_reg.write(name, Win32::Registry::REG_DWORD, value.to_i) end # can be nil if not set... def read_single_setting name @screen_reg[name] end def teardown @screen_reg.close @screen_reg = nil end end
Version data entries
14 entries across 14 versions & 2 rubygems