rumouse 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/win32.rb +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31b1e92274dbde9cb95cd89e6f2f2ad40ae300ae
4
- data.tar.gz: 9f9e94fe3e24391c02acb39a806bdd696b32ef51
3
+ metadata.gz: f9f7eb62e0046ce75aea394340162ccfd2a67aa0
4
+ data.tar.gz: 42d8f647a1a99efd4347e4da80dfcb57edb58145
5
5
  SHA512:
6
- metadata.gz: 1843506ee3bf68e10fb2a486b441859841e4b239b607d2f4607bfd7196b5d09d83c4dad2d7adaafdb42bd26231e2fa28e72d250dbfcaa85aea643ede6ea6ca1a
7
- data.tar.gz: ede1acb558d0caa25a913c1fbe30c66b28d0d7ee21c30abd90e20b93a68f408dc11b3c825d62485bf7cdf7e5804045fb34ba67e22ec715aa5c30bcb3a780e6b3
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Kostuchenko