Method: XDo::Keyboard#type_string

Defined in:
lib/x_do/keyboard.rb

#type_string(string, delay = 0.012) ⇒ Object

Types a string into the current window.



22
23
24
# File 'lib/x_do/keyboard.rb', line 22

def type_string(string, delay = 0.012)
  XDo::FFILib.xdo_type @_xdo_pointer, 0, string, (delay * 1_000_000).to_i
end