auto_click 0.0.4 → 0.0.5

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 0.0.5
2
+ remove gem dependency requirement.
3
+
1
4
  0.0.4
2
5
  Add gem dependency requirement.
3
6
 
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
- require 'win32/api'
2
- include Win32
1
+
2
+
3
+ require 'Win32API'
4
+
3
5
  require "auto_click/input_structure"
4
6
 
5
7
  module AutoClick
6
8
 
7
- @@gcp = API.new("GetCursorPos",'P','V',"user32")
8
- @@scp = API.new('SetCursorPos', 'II', 'V',"user32")
9
- @@si = API.new('SendInput','IPI', 'I',"user32")
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)
@@ -1,3 +1,3 @@
1
1
  module AutoClick
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
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
- - !ruby/object:Gem::Dependency
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