vendor/vendor_gems/rdp-rautomation-0.6.3.1/lib/rautomation/adapter/win_ffi/window.rb
# Activates the window and sends keys to it.
#
# Refer to KeystrokeConverter#convert_special_characters for the special keycodes.
# @see RAutomation::Window#send_keys
Activates the window and sends keys to it.
Refer to KeystrokeConverter#convert_special_characters for the special keycodes.
Activates the window and sends keys to it . Refer to KeystrokeConverter#convert_special_characters for the special keycodes .
def send_keys(keys)
          shift_pressed = false
          KeystrokeConverter.convert(keys).each do |key|
            wait_until do
              activate
              active?
            end
            press_key key
            if key == Constants::VK_LSHIFT
              shift_pressed = true
              next
            end
            release_key key
            if shift_pressed
              shift_pressed = false
              release_key Constants::VK_LSHIFT
            end
          end
        end
def send_keys ( keys ) shift_pressed = false KeystrokeConverter . convert ( keys ) . each do | key | wait_until do activate active? end press_key key if key == Constants :: VK_LSHIFT shift_pressed = true next end release_key key if shift_pressed shift_pressed = false release_key Constants :: VK_LSHIFT end end end
Activates the window and sends keys to it.
Activates the window and sends keys to it .
keys
see
None