rumouse 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/win32.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9f7eb62e0046ce75aea394340162ccfd2a67aa0
|
4
|
+
data.tar.gz: 42d8f647a1a99efd4347e4da80dfcb57edb58145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b1722015244da55f41178c5a506fedbc2d3efe4fac39cb97c15a407e81ecd7e23f427d5ddfc2aa95cda698e5f739b3366e872e181d57804ea1af52686f1ad17
|
7
|
+
data.tar.gz: 53eaa162f7c842553eac77e48e0ef9cd51b0136ce8c24912abb31cd6a420a81c38d24ba361acae740acb30c9c39a03c8556c28bbd3cb0172f1150c045a9576f6
|
data/lib/win32.rb
CHANGED
@@ -28,12 +28,14 @@ class RuMouse
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def press x, y, button = 1
|
31
|
+
move x, y
|
31
32
|
User32::mouse_event User32::MOUSEEVENTF_ABSOLUTE | button_code(button, true),
|
32
33
|
x, y,
|
33
34
|
0, nil
|
34
35
|
end
|
35
36
|
|
36
37
|
def release x, y, button = 1
|
38
|
+
move x, y
|
37
39
|
User32::mouse_event User32::MOUSEEVENTF_ABSOLUTE | button_code(button, false),
|
38
40
|
x, y,
|
39
41
|
0, nil
|