Class: RFormSpec::AutoIt
- Inherits:
-
Object
- Object
- RFormSpec::AutoIt
- Defined in:
- lib/rformspec.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/rformspec.rb', line 21 def self.init $a3 = WIN32OLE.new('AutoItX3.Control') $a3.AutoItSetOption("WinSearchChildren", 1); # Search Children window as well $a3.AutoItSetOption("WinTitleMatchMode", 2); $a3.AutoItSetOption("CaretCoordMode", 0); $a3.AutoItSetOption("ColorMode", 1); $a3.AutoItSetOption("MouseCoordMode", 0); $a3.AutoItSetOption("PixelCoordMode", 0); $a3.AutoItSetOption("SendKeyDelay", 15) return $a3 end |
.set_option(key, value) ⇒ Object
35 36 37 38 |
# File 'lib/rformspec.rb', line 35 def self.set_option(key, value) self.init if $a3.nil? $a3.AutoItSetOption(key, value) end |