special_input_device 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/ext/special_input_device/color.c +25 -6
  3. data/ext/special_input_device/color.h +5 -1
  4. data/ext/special_input_device/extconf.rb +2 -2
  5. data/ext/special_input_device/image.c +728 -0
  6. data/ext/special_input_device/image.h +8 -0
  7. data/ext/special_input_device/{interception_connector.c → interception.c} +7 -3
  8. data/ext/special_input_device/{interception_connector.h → interception.h} +0 -0
  9. data/ext/special_input_device/keyboard.c +4 -4
  10. data/ext/special_input_device/mouse.c +26 -28
  11. data/ext/special_input_device/ruby_macro.h +11 -3
  12. data/ext/special_input_device/screen.c +54 -164
  13. data/ext/special_input_device/special_input_device.c +2 -2
  14. data/ext/special_input_device/special_input_device.h +2 -1
  15. data/ext/special_input_device/win32error.c +0 -2
  16. data/ext/special_input_device/window.c +82 -105
  17. data/lib/special_input_device/color.rb +2 -3
  18. data/lib/special_input_device/image.rb +2 -61
  19. data/lib/special_input_device/point.rb +0 -1
  20. data/lib/special_input_device/special_input_device.rb +0 -1
  21. metadata +7 -15
  22. data/lib/special_input_device/image/bmp.rb +0 -89
  23. data/lib/special_input_device/image/error/damaged_image_error.rb +0 -4
  24. data/lib/special_input_device/image/error/image_error.rb +0 -3
  25. data/lib/special_input_device/image/error/unsupported_image_format_error.rb +0 -4
  26. data/lib/special_input_device/table_2d.rb +0 -157
  27. data/stab/keyboard.rb +0 -35
  28. data/stab/mouse.rb +0 -189
  29. data/stab/screen.rb +0 -56
  30. data/stab/win32_error.rb +0 -20
  31. data/stab/window.rb +0 -398
data/stab/screen.rb DELETED
@@ -1,56 +0,0 @@
1
- # noinspection ALL
2
- module SpecialInputDevice::Screen
3
-
4
- class << self
5
-
6
- # Returns the rectangle of primary screen. The rectangle is relative to primary screen itself so the upper-left corner
7
- # of the rectangle is always (0, 0).
8
- # @return [SpecialInputDevice::Rectangle] the rectangle of primary screen
9
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms724385.aspx Windows Dev Center - GetSystemMetrics function
10
- def primary_screen
11
- # This is a stub, used for indexing
12
- end
13
-
14
- # Returns the rectangle of virtual screen. The rectangle is relative to primary screen so the x and y of upper-left
15
- # corner is always non-positive. Virtual screen is a area that contain all the screens and some position in virtual may
16
- # not accessible.
17
- # @return [SpecialInputDevice::Rectangle] the rectangle of virtual screen
18
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms724385.aspx Windows Dev Center - GetSystemMetrics function
19
- def virtual_screen
20
- # This is a stub, used for indexing
21
- end
22
-
23
- # Returns the color at the specific position on primary screen coordinate system.
24
- # @param [Fixnum] x the x coordinate of the point for get color
25
- # @param [Fixnum] y the y coordinate of the point for get color
26
- # @return [SpecialInputDevice::Color] the color at the specified point at the screen
27
- # @see SpecialInputDevice::Window#color_at
28
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/dd144909.aspx Windows Dev Center - GetPixel function
29
- def color_at(x, y)
30
- # This is a stub, used for indexing
31
- end
32
-
33
- # Capture the whole screen or a rectangle part of screen.
34
- # @param [Integer] x the x-coordinate of the left edge
35
- # @param [Integer] y the y-coordinate of the top edge
36
- # @param [Integer] width the width of rectangle
37
- # @param [Integer] height the height of rectangle
38
- # @return [SpecialInputDevice::Image]
39
- def capture(x = virtual_screen.x, y = virtual_screen.y, width = virtual_screen.width, height = virtual_screen.height)
40
- # This is a stub, used for indexing
41
- end
42
-
43
- # @param [SpecialInputDevice::Image, String] image a picture to be search
44
- # @param [SpecialInputDevice::Rectangle] area the searching area
45
- # @param [Float] similarity minimum limit of similarity
46
- # @param [Symbol] _return indicate the behavior of this method, see SpecialInputDevice::Image::RETURN_METHOD
47
- # @return [NilClass, SpecialInputDevice::Rectangle] a rectangle contain the position and the size of the result
48
- # @see SpecialInputDevice::Image#find
49
- # @see SpecialInputDevice::Image::RETURN_METHOD
50
- def find_image(image, area: SpecialInputDevice::Screen.primary_screen, similarity: 1.0, _return: RETURN_METHOD::FIRST)
51
- # This is a stub, used for indexing
52
- end
53
-
54
- end
55
-
56
- end
data/stab/win32_error.rb DELETED
@@ -1,20 +0,0 @@
1
- # noinspection ALL
2
- class SpecialInputDevice::Win32Error
3
-
4
- # @return [Integer] the error code
5
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms679360.aspx Windows Dev Center - GetLastError function
6
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms681381.aspx Windows Dev Center - System Error Codes
7
- attr_reader(:code)
8
-
9
- # @return [String] the error description
10
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351.aspx Windows Dev Center - FormatMessage function
11
- attr_reader(:description)
12
-
13
- # Returns a new instance of <code>Win32Error</code>.
14
- # @param [Integer] code the error code
15
- # @return [SpecialInputDevice::Window] a new instance of <code>Win32Error</code>
16
- def initialize(code = nil)
17
- # This is a stub, used for indexing
18
- end
19
-
20
- end
data/stab/window.rb DELETED
@@ -1,398 +0,0 @@
1
- # noinspection ALL
2
- class SpecialInputDevice::Window
3
-
4
- class << self
5
-
6
- # Returns the desktop window. The desktop window covers the entire screen. The desktop window is the area on top of
7
- # which other windows are painted.
8
- # @return [SpecialInputDevice::Window] the desktop window.
9
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633504.aspx Windows Dev Center - GetDesktopWindow function
10
- def desktop
11
- # This is a stub, used for indexing
12
- end
13
-
14
- # Search the window with specified windows name and class_name. If this parameter is <i>nil</i>, all window pass. If
15
- # this parameter is a <code>Regexp</code>, window pass if its name match the pattern.If this parameter is a
16
- # <code>String</code>, this method perform a case-insensitive search and window pass only if its full name totally
17
- # matches.
18
- # @param [NilClass, Regex, String] window_name the title of window.
19
- # @param [NilClass, Regex, String] class_name the name class or class atom in windows.
20
- # @return [SpecialInputDevice::Window, NilClass]
21
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633497.aspx Windows Dev Center - EnumWindows function
22
- def find(window_name = nil, class_name = nil)
23
- # This is a stub, used for indexing
24
- end
25
-
26
- # @return [SpecialInputDevice::Window] a window which the user is currently working.
27
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633505.aspx Windows Dev Center - GetForegroundWindow function
28
- def foreground
29
- # This is a stub, used for indexing
30
- end
31
-
32
- end
33
-
34
- # @return [String] the name of class or class atom in windows.
35
- attr_reader(:class_name)
36
- # The handle code of the window. Handle code is an Integer for identifying windows.
37
- # @return [Integer] the handle code of the window.
38
- attr_reader(:handle_code)
39
- # @return [String] the title of window.
40
- attr_accessor(:window_name)
41
-
42
- # Returns a new instance of <code>Window</code>. Normally, use <code>::find</code> to get a window because it is not
43
- # easy to find out a handle code of the window directly.
44
- # @param [Integer] handle_code the handle code of the window. Handle code is an Integer for identifying windows.
45
- # @return [SpecialInputDevice::Window] a new instance of <code>Window</code>
46
- def initialize(handle_code)
47
- # This is a stub, used for indexing
48
- end
49
-
50
- # Search the window with specified windows name and class_name form the children of self. This method perform a
51
- # case-insensitive search.
52
- # @param [String] window_name the title of window. If this parameter is <i>nil</i>, all window names match.
53
- # @param [String] class_name the name of class or class atom in windows. If this parameter is <i>nil</i>, all class names match.
54
- # @param [SpecialInputDevice::Window] after a child window. The search begins with the next child window in the z-order. The child window must be a direct child window of hwndParent, not just a descendant window.
55
- # @return [SpecialInputDevice::Window]
56
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633500.aspx Windows Dev Center - FindWindowEX function
57
- def find_child(window_name = nil, class_name = nil, after = nil)
58
- # This is a stub, used for indexing
59
- end
60
-
61
- # @return [SpecialInputDevice::Window] the parent window of self.
62
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633502.aspx Windows Dev Center - GetAncestor function
63
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633510.aspx Windows Dev Center - GetParent function
64
- def parent(include_owner = false)
65
- # This is a stub, used for indexing
66
- end
67
-
68
- # @return [SpecialInputDevice::Window] the root window of self.
69
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633502.aspx Windows Dev Center - GetAncestor function
70
- def root(include_owner = false)
71
- # This is a stub, used for indexing
72
- end
73
-
74
- # Returns the rectangle of the window's client area. The coordinates of rectangle are relative to the client area
75
- # itself so the upper-left corner are always (0, 0).
76
- # @return [SpecialInputDevice::Rectangle] the rectangle of the window's client area.
77
- # @see #window_rectangle
78
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633503.aspx Windows Dev Center - GetClientRect function
79
- def client_rectangle
80
- # This is a stub, used for indexing
81
- end
82
-
83
- # Returns the bounding rectangle of the window. The rectangle is given in screen coordinates.
84
- # @return [SpecialInputDevice::Rectangle] the bounding rectangle of the window.
85
- # @see #client_rectangle
86
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633503.aspx Windows Dev Center - GetClientRect function
87
- def window_rectangle
88
- # This is a stub, used for indexing
89
- end
90
-
91
- # Brings the window to the foreground.
92
- # @return [SpecialInputDevice::Window] self
93
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633539.aspx Windows Dev Center - SetForegroundWindow function
94
- def bring_to_foreground
95
- # This is a stub, used for indexing
96
- end
97
-
98
- # Close the window.
99
- # @return [SpecialInputDevice::Window] self
100
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
101
- def close
102
- # This is a stub, used for indexing
103
- end
104
-
105
- # Hides the window. To show it again, call {#maximize}, {#minimize} or {#restore}.
106
- # @return [SpecialInputDevice::Window] self
107
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548.aspx Windows Dev Center - ShowWindow function
108
- def hide
109
- # This is a stub, used for indexing
110
- end
111
-
112
- # Maximizes the window.
113
- # @return [SpecialInputDevice::Window] self
114
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548.aspx Windows Dev Center - ShowWindow function
115
- def maximize
116
- # This is a stub, used for indexing
117
- end
118
-
119
- # Minimizes the window.
120
- # @return [SpecialInputDevice::Window] self
121
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548.aspx Windows Dev Center - ShowWindow function
122
- def minimize
123
- # This is a stub, used for indexing
124
- end
125
-
126
- # Restore the window and then moves it to specific position.
127
- # @param [Integer] x the x-coordinate of target
128
- # @param [Integer] y the y-coordinate of target
129
- # @return [SpecialInputDevice::Window] self
130
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548.aspx Windows Dev Center - SetWindowPos function
131
- def move_to(x, y)
132
- # This is a stub, used for indexing
133
- end
134
-
135
- # Restore the window and then change it to specific size.
136
- # @param [Integer] width the width of target size
137
- # @param [Integer] height the height of target size
138
- # @return [SpecialInputDevice::Window] self
139
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633545.aspx Windows Dev Center - SetWindowPos function
140
- def resize_to(width, height)
141
- # This is a stub, used for indexing
142
- end
143
-
144
- # Restores the window.
145
- # @return [SpecialInputDevice::Window] self
146
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548.aspx Windows Dev Center - ShowWindow function
147
- def restore
148
- # This is a stub, used for indexing
149
- end
150
-
151
- # @param [Fixnum] x the x coordinate of the point for get color
152
- # @param [Fixnum] y the y coordinate of the point for get color
153
- # @return [SpecialInputDevice::Color] the color at the specified point in the client area of window
154
- # @see SpecialInputDevice::Screen.color_at
155
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/dd144909.aspx Windows Dev Center - GetPixel function
156
- def color_at(x, y)
157
- # This is a stub, used for indexing
158
- end
159
-
160
- # Simulate holding the specified key down in the window. User would not lose the control of computer.
161
- # @param [Integer] key_code virtual key code. Use a value of constant in {SpecialInputDevice::KeyCode}.
162
- # @return [SpecialInputDevice::Window] self
163
- # @see SpecialInputDevice::Keyboard.hold
164
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
165
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646280.aspx Windows Dev Center - WM_KEYDOWN message
166
- def key_hold(key_code)
167
- # This is a stub, used for indexing
168
- end
169
-
170
- # Simulate releasing the specified key in the window. User would not lose the control of computer.
171
- # @param [Integer] key_code virtual key code. Use a value of constant in {SpecialInputDevice::KeyCode}.
172
- # @return [SpecialInputDevice::Window] self
173
- # @see SpecialInputDevice::Keyboard.release
174
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
175
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646281.aspx Windows Dev Center - WM_KEYUP message
176
- def key_release(key_code)
177
- # This is a stub, used for indexing
178
- end
179
-
180
- # Simulate pressing the specified key in the window. User would not lose the control of computer.
181
- # @param [Integer] key_code virtual key code. Use a value of constant in {SpecialInputDevice::KeyCode}.
182
- # @return [SpecialInputDevice::Window] self
183
- # @see SpecialInputDevice::Keyboard.press
184
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
185
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646280.aspx Windows Dev Center - WM_KEYDOWN message
186
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646281.aspx Windows Dev Center - WM_KEYUP message
187
- def key_press(key_code)
188
- # This is a stub, used for indexing
189
- end
190
-
191
- # Move the cursor position relative to current position.
192
- # @param [Integer] x the amount of horizontal motion specified as the number of pixels.
193
- # @param [Integer] y the amount of vertical motion specified as the number of pixels.
194
- # @return [SpecialInputDevice::Window] self
195
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
196
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645616.aspx Windows Dev Center - WM_MOUSEMOVE message
197
- def mouse_move_relatively(x, y)
198
- # This is a stub, used for indexing
199
- end
200
-
201
- # Move the cursor position relative to the upper-left corner of client area of the window.
202
- # @param [Integer] x the x-coordinate of position specified as the number of pixels.
203
- # @param [Integer] y the y-coordinate of position specified as the number of pixels.
204
- # @return [SpecialInputDevice::Window] self
205
- # @see SpecialInputDevice::Mouse.move_to_primary
206
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
207
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645616.aspx Windows Dev Center - WM_MOUSEMOVE message
208
- def mouse_move_to(x, y)
209
- # This is a stub, used for indexing
210
- end
211
-
212
- # Simulate clicking the left button on the mouse in the window.
213
- # @return [SpecialInputDevice::Window] self
214
- # @see SpecialInputDevice::Mouse.left_click
215
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
216
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645606.aspx Windows Dev Center - WM_LBUTTONDBLCLK message
217
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645607.aspx Windows Dev Center - WM_LBUTTONDOWN message
218
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645608.aspx Windows Dev Center - WM_LBUTTONUP message
219
- def mouse_left_click
220
- # This is a stub, used for indexing
221
- end
222
-
223
- # Simulate holding the left button on the mouse down in the window.
224
- # @return [SpecialInputDevice::Window] self
225
- # @see SpecialInputDevice::Mouse.left_down
226
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
227
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645606.aspx Windows Dev Center - WM_LBUTTONDBLCLK message
228
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645607.aspx Windows Dev Center - WM_LBUTTONDOWN message
229
- def mouse_left_down
230
- # This is a stub, used for indexing
231
- end
232
-
233
- # Simulate releasing the left button on the mouse in the window.
234
- # @return [SpecialInputDevice::Window] self
235
- # @see SpecialInputDevice::Mouse.left_up
236
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
237
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645608.aspx Windows Dev Center - WM_LBUTTONUP message
238
- def mouse_left_up
239
- # This is a stub, used for indexing
240
- end
241
-
242
- # Simulate clicking the right button on the mouse in the window.
243
- # @return [SpecialInputDevice::Window] self
244
- # @see SpecialInputDevice::Mouse.right_click
245
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
246
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646241.aspx Windows Dev Center - WM_RBUTTONDBLCLK function
247
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646242.aspx Windows Dev Center - WM_RBUTTONDOWN function
248
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646243.aspx Windows Dev Center - WM_RBUTTONUP function
249
- def mouse_right_click
250
- # This is a stub, used for indexing
251
- end
252
-
253
- # Simulate holding the right button on the mouse down in the window.
254
- # @return [SpecialInputDevice::Window] self
255
- # @see SpecialInputDevice::Mouse.right_down
256
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
257
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646241.aspx Windows Dev Center - WM_RBUTTONDBLCLK function
258
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646242.aspx Windows Dev Center - WM_RBUTTONDOWN function
259
- def mouse_right_down
260
- # This is a stub, used for indexing
261
- end
262
-
263
- # Simulate releasing the right button on the mouse in the window.
264
- # @return [SpecialInputDevice::Window] self
265
- # @see SpecialInputDevice::Mouse.right_up
266
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
267
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646243.aspx Windows Dev Center - WM_RBUTTONUP function
268
- def mouse_right_up
269
- # This is a stub, used for indexing
270
- end
271
-
272
- # Simulate clicking the middle button on the mouse in the window.
273
- # @return [SpecialInputDevice::Window] self
274
- # @see SpecialInputDevice::Mouse.middle_click
275
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
276
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645609.aspx Windows Dev Center - WM_MBUTTONDBLCLK function
277
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645610.aspx Windows Dev Center - WM_MBUTTONDOWN function
278
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645611.aspx Windows Dev Center - WM_MBUTTONUP function
279
- def mouse_middle_click
280
- # This is a stub, used for indexing
281
- end
282
-
283
- # Simulate holding the middle button on the mouse down in the window.
284
- # @return [SpecialInputDevice::Window] self
285
- # @see SpecialInputDevice::Mouse.middle_down
286
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
287
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645609.aspx Windows Dev Center - WM_MBUTTONDBLCLK function
288
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645610.aspx Windows Dev Center - WM_MBUTTONDOWN function
289
- def mouse_middle_down
290
- # This is a stub, used for indexing
291
- end
292
-
293
- # Simulate releasing the middle button on the mouse in the window.
294
- # @return [SpecialInputDevice::Window] self
295
- # @see SpecialInputDevice::Mouse.middle_up
296
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
297
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645611.aspx Windows Dev Center - WM_MBUTTONUP function
298
- def mouse_middle_up
299
- # This is a stub, used for indexing
300
- end
301
-
302
- # Simulate clicking the x1 button on the mouse in the window.
303
- # @return [SpecialInputDevice::Window] self
304
- # @see SpecialInputDevice::Mouse.x1_click
305
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
306
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646244.aspx Windows Dev Center - WM_XBUTTONDBLCLK function
307
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646245.aspx Windows Dev Center - WM_XBUTTONDOWN function
308
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646246.aspx Windows Dev Center - WM_XBUTTONUP function
309
- def mouse_x1_click
310
- # This is a stub, used for indexing
311
- end
312
-
313
- # Simulate holding the x1 button on the mouse down in the window.
314
- # @return [SpecialInputDevice::Window] self
315
- # @see SpecialInputDevice::Mouse.x1_down
316
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
317
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646244.aspx Windows Dev Center - WM_XBUTTONDBLCLK function
318
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646245.aspx Windows Dev Center - WM_XBUTTONDOWN function
319
- def mouse_x1_down
320
- # This is a stub, used for indexing
321
- end
322
-
323
- # Simulate releasing the x1 button on the mouse in the window.
324
- # @return [SpecialInputDevice::Window] self
325
- # @see SpecialInputDevice::Mouse.x1_up
326
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
327
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646246.aspx Windows Dev Center - WM_XBUTTONUP function
328
- def mouse_x1_up
329
- # This is a stub, used for indexing
330
- end
331
-
332
- # Simulate clicking the x2 button on the mouse in the window.
333
- # @return [SpecialInputDevice::Window] self
334
- # @see SpecialInputDevice::Mouse.x2_click
335
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
336
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646244.aspx Windows Dev Center - WM_XBUTTONDBLCLK function
337
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646245.aspx Windows Dev Center - WM_XBUTTONDOWN function
338
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646246.aspx Windows Dev Center - WM_XBUTTONUP function
339
- def mouse_x2_click
340
- # This is a stub, used for indexing
341
- end
342
-
343
- # Simulate holding the x2 button on the mouse down in the window.
344
- # @return [SpecialInputDevice::Window] self
345
- # @see SpecialInputDevice::Mouse.x2_down
346
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
347
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646244.aspx Windows Dev Center - WM_XBUTTONDBLCLK function
348
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646245.aspx Windows Dev Center - WM_XBUTTONDOWN function
349
- def mouse_x2_down
350
- # This is a stub, used for indexing
351
- end
352
-
353
- # Simulate releasing the x2 button on the mouse in the window.
354
- # @return [SpecialInputDevice::Window] self
355
- # @see SpecialInputDevice::Mouse.x1_up
356
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
357
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646246.aspx Windows Dev Center - WM_XBUTTONUP function
358
- def mouse_x2_up
359
- # This is a stub, used for indexing
360
- end
361
-
362
- # Simulate wheeling the scroll backward in the window.
363
- # @return [SpecialInputDevice::Window] self
364
- # @see SpecialInputDevice::Mouse.scroll_wheel_backward
365
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
366
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645617.aspx Windows Dev Center - WM_MOUSEWHEEL function
367
- def mouse_scroll_wheel_backward
368
- # This is a stub, used for indexing
369
- end
370
-
371
- # Simulate wheeling the scroll forward in the window.
372
- # @return [SpecialInputDevice::Window] self
373
- # @see SpecialInputDevice::Mouse.scroll_wheel_forward
374
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
375
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645617.aspx Windows Dev Center - WM_MOUSEWHEEL function
376
- def mouse_scroll_wheel_forward
377
- # This is a stub, used for indexing
378
- end
379
-
380
- # Simulate wheeling the scroll to left hand side in the window.
381
- # @return [SpecialInputDevice::Window] self
382
- # @see SpecialInputDevice::Mouse.scroll_wheel_to_left
383
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
384
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645614.aspx Windows Dev Center - WM_MOUSEHWHEEL function
385
- def mouse_scroll_wheel_to_left
386
- # This is a stub, used for indexing
387
- end
388
-
389
- # Simulate wheeling the scroll to right hand side in the window.
390
- # @return [SpecialInputDevice::Window] self
391
- # @see SpecialInputDevice::Mouse.scroll_wheel_to_right
392
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944.aspx Windows Dev Center - PostMessage function
393
- # @see https://msdn.microsoft.com/en-us/library/windows/desktop/ms645614.aspx Windows Dev Center - WM_MOUSEHWHEEL function
394
- def mouse_scroll_wheel_to_right
395
- # This is a stub, used for indexing
396
- end
397
-
398
- end