auto_click 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/README.rdoc +4 -10
- data/auto_click.gemspec +0 -2
- data/lib/auto_click.rb +7 -5
- data/lib/auto_click/version.rb +1 -1
- metadata +4 -18
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -6,15 +6,7 @@ Ruby gem for simulating mouse clicks and mouse cursor movement.
|
|
6
6
|
|
7
7
|
To install auto_click:
|
8
8
|
|
9
|
-
gem install auto_click
|
10
|
-
|
11
|
-
You need Win32-api gem for auto_click to work properly:
|
12
|
-
|
13
|
-
gem install Win32-api
|
14
|
-
|
15
|
-
or if you have trouble installing it:
|
16
|
-
|
17
|
-
gem install Win32-api --platform=ruby
|
9
|
+
gem install auto_click
|
18
10
|
|
19
11
|
== Usage
|
20
12
|
|
@@ -41,4 +33,6 @@ To scroll down 5 wheel steps
|
|
41
33
|
mouse_scroll(-5)
|
42
34
|
|
43
35
|
|
44
|
-
== License
|
36
|
+
== License
|
37
|
+
|
38
|
+
|
data/auto_click.gemspec
CHANGED
@@ -11,8 +11,6 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.homepage = ""
|
12
12
|
s.summary = %q{Smulating mouse click and cursor movement in Ruby}
|
13
13
|
s.description = %q{Provide several ruby methods for simulating mouse click and cursor movement in Windows. Currently only contains 5 methods (mouse_move(x,y), left_click, right_click, cursor_position and mouse_scroll).}
|
14
|
-
|
15
|
-
s.add_dependency('win32-api', '>=1.4.7')
|
16
14
|
|
17
15
|
# s.rubyforge_project = "auto_click"
|
18
16
|
|
data/lib/auto_click.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
|
2
|
+
|
3
|
+
require 'Win32API'
|
4
|
+
|
3
5
|
require "auto_click/input_structure"
|
4
6
|
|
5
7
|
module AutoClick
|
6
8
|
|
7
|
-
@@gcp =
|
8
|
-
@@scp =
|
9
|
-
@@si =
|
9
|
+
@@gcp = Win32API.new("user32", "GetCursorPos",'P','V')
|
10
|
+
@@scp = Win32API.new("user32", 'SetCursorPos', 'II', 'V')
|
11
|
+
@@si = Win32API.new("user32", 'SendInput','IPI', 'I')
|
10
12
|
|
11
13
|
@@rightdown = InputStructure.mouse_input(0,0,0,0x0008)
|
12
14
|
@@rightup = InputStructure.mouse_input(0,0,0,0x0010)
|
data/lib/auto_click/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 5
|
9
|
+
version: 0.0.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- erinata
|
@@ -16,22 +16,8 @@ cert_chain: []
|
|
16
16
|
|
17
17
|
date: 2010-12-26 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
|
21
|
-
name: win32-api
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 4
|
31
|
-
- 7
|
32
|
-
version: 1.4.7
|
33
|
-
type: :runtime
|
34
|
-
version_requirements: *id001
|
19
|
+
dependencies: []
|
20
|
+
|
35
21
|
description: Provide several ruby methods for simulating mouse click and cursor movement in Windows. Currently only contains 5 methods (mouse_move(x,y), left_click, right_click, cursor_position and mouse_scroll).
|
36
22
|
email:
|
37
23
|
- erinata@gmail.com
|