Module: InputStructure
- Defined in:
- lib/auto_click/input_structure.rb
Class Method Summary collapse
- .keyboard_input(wVk, dw_flags) ⇒ Object
- .keyboard_input_32(wVk, dw_flags) ⇒ Object
- .mouse_input(dx, dy, mouse_data, dw_flags) ⇒ Object
- .mouse_input_32(dx, dy, mouse_data, dw_flags) ⇒ Object
Class Method Details
.keyboard_input(wVk, dw_flags) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/auto_click/input_structure.rb', line 13 def self.keyboard_input(wVk,dw_flags) ki = Array.new(7, 0) ki[0] = 1 ki[1] = wVk ki[2] = dw_flags ki.pack('QLLLLQQ') end |
.keyboard_input_32(wVk, dw_flags) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/auto_click/input_structure.rb', line 31 def self.keyboard_input_32(wVk,dw_flags) ki = Array.new(7, 0) ki[0] = 1 ki[1] = wVk ki[2] = dw_flags ki.pack('LLLLLLL') end |
.mouse_input(dx, dy, mouse_data, dw_flags) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/auto_click/input_structure.rb', line 3 def self.mouse_input(dx,dy,mouse_data,dw_flags) mi = Array.new(7, 0) mi[0] = 0 mi[1] = dx mi[2] = dy mi[3] = mouse_data mi[4] = dw_flags mi.pack('QLLLLQQ') end |
.mouse_input_32(dx, dy, mouse_data, dw_flags) ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/auto_click/input_structure.rb', line 21 def self.mouse_input_32(dx,dy,mouse_data,dw_flags) mi = Array.new(7, 0) mi[0] = 0 mi[1] = dx mi[2] = dy mi[3] = mouse_data mi[4] = dw_flags mi.pack('LLLLLLL') end |