auto_click 0.4.3 → 0.5.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -1
- data/README.rdoc +14 -1
- data/lib/auto_click.rb +7 -2
- data/lib/auto_click/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8a59692f222289e432f4ccf0371268caf610f529e6d15ace1379645656fb628
|
4
|
+
data.tar.gz: ee40eee7a6aee940640188e7afef2bbae82278d17a1498e84e83f552816a69eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fc679de6858520e073e0c3fb1262cac72cd42554532a623fae13f95f7f169c15a0ea5701d76c2700f94fbbfd26f4096f39a86fe23f142e7b82b848522f8ace6
|
7
|
+
data.tar.gz: 07d34d59901df97034877f68dd136b9a586fbd901aa206e6e8193fa1aadf922febceb39efadd593386b2c9b3345b9248d5c792e4c02ef0e7cb3d6b9fb092ee2d
|
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -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
|
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
|
data/lib/auto_click.rb
CHANGED
@@ -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
|
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
|
|
data/lib/auto_click/version.rb
CHANGED
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
|
+
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
|
-
|
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
|