Module: AutoItFFI::FunctionAttacher
- Defined in:
- lib/function_attacher.rb
Constant Summary collapse
- FUNCTION_PROTOTYPES =
[ [ :AU3_error, [], :long ], [ :AU3_AutoItSetOption, [:pointer, :long], :long ], [ :AU3_ClipGet, [:pointer, :long], :void ], [ :AU3_Init, [], :void ], [ :AU3_BlockInput, [:long], :void ], [ :AU3_MouseGetPosX, [], :int ], [ :AU3_MouseGetPosY, [], :int ], [ :AU3_IsAdmin, [], :int ], [ :AU3_MouseMove, [:long, :long, :long], :long ], [ :AU3_WinMinimizeAll, [], :void ], [ :AU3_WinMinimizeAllUndo, [], :void ], [ :AU3_MouseWheel, [:pointer, :long], :void ], [ :AU3_CDTray, [:pointer, :pointer], :long ], [ :AU3_Send, [:pointer, :long], :void ], [ :AU3_Sleep, [:long], :void ], [ :AU3_Shutdown, [:long], :long ], [ :AU3_ToolTip, [:pointer, :long, :long], :void ], [ :AU3_WinClose, [:pointer, :pointer], :long ], [ :AU3_WinExists, [:pointer, :pointer], :long ], [ :AU3_WinKill, [:pointer, :pointer], :long ] ]
Class Method Summary collapse
-
.attach(lib) ⇒ Object
Attaches the AutoIt DLL functions to lib (which must extend FFI::Library).
Class Method Details
.attach(lib) ⇒ Object
Attaches the AutoIt DLL functions to lib (which must extend FFI::Library). See “doc/Function Prototypes ©.txt” for the C header file.
34 35 36 |
# File 'lib/function_attacher.rb', line 34 def self.attach(lib) FUNCTION_PROTOTYPES.each { |fun| lib.attach_function *fun } end |