Method: AX::Application#type

Defined in:
lib/ax/application.rb

#type(string) ⇒ Boolean Also known as: type_string

Send keyboard input to the focused control element; this is not necessarily an element belonging to the receiving app.

For details on how to format the string, check out the Keyboarding documentation.

Parameters:

Returns:



305
306
307
308
309
310
# File 'lib/ax/application.rb', line 305

def type string
  perform(:unhide) unless focused?
  keyboard_events_for(string).each do |event|
    KeyCoder.post_event event
  end
end