auto_click 0.4.3 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47d56fa17310e18867a710aef8a980ffb8b58ac4a656e1abea7d5f8b26bbece7
4
- data.tar.gz: c6bc2650e7f044871fb06b253bc09c6efe63709590bde4440511c30ac9291e5d
3
+ metadata.gz: b8a59692f222289e432f4ccf0371268caf610f529e6d15ace1379645656fb628
4
+ data.tar.gz: ee40eee7a6aee940640188e7afef2bbae82278d17a1498e84e83f552816a69eb
5
5
  SHA512:
6
- metadata.gz: fa65e21e050acd7df0a6b2e0dbd752c3c0ff71cc0192469fef623a2857dfd263b7052d72d7a436b1cb0db51bed7d79c9d493676c51b510e6a30f57960e8a8bb7
7
- data.tar.gz: c5f66a8bd2dae391a48d33e5a1eb95d6612857329cfc6f8ba18919f498830ce5b2cddf9d77e1faa5af7ea39a65059ebcbf42c2c38849f87a30ce706b07969f7b
6
+ metadata.gz: 8fc679de6858520e073e0c3fb1262cac72cd42554532a623fae13f95f7f169c15a0ea5701d76c2700f94fbbfd26f4096f39a86fe23f142e7b82b848522f8ace6
7
+ data.tar.gz: 07d34d59901df97034877f68dd136b9a586fbd901aa206e6e8193fa1aadf922febceb39efadd593386b2c9b3345b9248d5c792e4c02ef0e7cb3d6b9fb092ee2d
data/CHANGELOG CHANGED
@@ -1,7 +1,8 @@
1
1
 
2
2
 
3
- 0.4.3
3
+ 0.5.0
4
4
  Add mouse_move_percentage and get_screen_resolution
5
+ Autoclick will not include the methods automatically
5
6
 
6
7
  0.4.0
7
8
  Fix the 64bit bug and Fixnum! bug
@@ -10,9 +10,10 @@ To install auto_click:
10
10
 
11
11
  == Basic Usage
12
12
 
13
- Using auto_click is easy. To use the methods provided by auto_click. You need to require it.
13
+ Using auto_click is easy. To use the methods provided by auto_click. You need to require the gem and include the module:
14
14
 
15
15
  require 'auto_click'
16
+ Include AutoClickMethods
16
17
 
17
18
  To move the mouse cursor to 50,50 ( the top left corner is 0,0) and perform a double left click:
18
19
 
@@ -156,6 +157,18 @@ The list of virtual key codes can be found at http://msdn.microsoft.com/en-us/li
156
157
 
157
158
  There are some methods which are not discussed here. Please see the following Method List for all the available methods.
158
159
 
160
+ Finally, if you do not want include the auto_click methods, instead of using
161
+
162
+ include AutoClickMethods
163
+
164
+ you can construct a new instance of AutoClick and involve the methods as class methods
165
+
166
+ ac = AutoClick.new()
167
+ ac.mouse_move(50,50)
168
+
169
+
170
+
171
+
159
172
  == Method List
160
173
 
161
174
  - left_click
@@ -3,7 +3,7 @@ require 'auto_click/input_structure'
3
3
  require 'auto_click/virtual_key'
4
4
  require 'auto_click/user32'
5
5
 
6
- module AutoClick
6
+ module AutoClickMethods
7
7
  @@rightdown = InputStructure.mouse_input(0,0,0,0x0008)
8
8
  @@rightup = InputStructure.mouse_input(0,0,0,0x0010)
9
9
  @@leftdown = InputStructure.mouse_input(0,0,0,0x0002)
@@ -294,5 +294,10 @@ module AutoClick
294
294
  end
295
295
 
296
296
 
297
- include AutoClick # This line allow auto include when the user require the gem
297
+ # include AutoClick # This line allow auto include when the user require the gem
298
+
299
+ class AutoClick
300
+ include AutoClickMethods
301
+ end
302
+
298
303
 
@@ -1,3 +1,3 @@
1
1
  module AutoClick
2
- VERSION = "0.4.3"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_click
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - erinata
@@ -53,8 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
- rubyforge_project:
57
- rubygems_version: 2.7.7
56
+ rubygems_version: 3.0.3
58
57
  signing_key:
59
58
  specification_version: 4
60
59
  summary: Smulating mouse click, cursor movement and keystrokes