Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ test_build.rb
test_run.rb
.project
test.rb
.idea
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/active-tab-highlighter-v2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions .idea/auto_click.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 67 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source "http://rubygems.org"
source "https://rubygems.org"

# Specify your gem's dependencies in auto_click.gemspec
gemspec
Expand Down
11 changes: 7 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
PATH
remote: .
specs:
auto_click (0.1.0)
win_auto_click (2.0.0)

GEM
remote: http://rubygems.org/
remote: https://rubygems.org/
specs:

PLATFORMS
x86-mingw32
x64-mingw-ucrt

DEPENDENCIES
auto_click!
win_auto_click!

BUNDLED WITH
2.5.5
51 changes: 0 additions & 51 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ To move the mouse cursor to 50,50 ( the top left corner is 0,0) and perform a do

mouse_move(50,50)
double_click

To move the mouse cursor to 50,50 and perform a right click:

mouse_move(50,50)
right_click

Expand Down Expand Up @@ -206,51 +203,3 @@ you can construct a new instance of AutoClick and invoke the methods from the in
- key_down(key_name)

- key_up(key_name)

== To Do List

- Backward compatibility with 32-bit Ruby

- Add options of movement speed of mouse so the cursor is actually "moving" instead of just show up at the destination instantly

- GetWindow and GetWindowFocus Method

- Refactor the ugly type(string) method

- Use code block to implement modifier keys

- More effective way to move mouse relative to current position

== Change log
(for full change log please refer to the CHANGELOG file in the repository)

- 0.5.0 Users have to explicitly use "include AutoClickMethods" to include the methods, add mouse_move_percentage and get_screen_resolution

- 0.4.0 Fix the 64bit bug and Fixnum! bug

- 0.3.0 Update to use DL Library


== License

MIT license

Copyright (C) 2010-2019 by Chungsang Tom Lam

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
37 changes: 18 additions & 19 deletions auto_click.gemspec
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "auto_click/version"

Gem::Specification.new do |s|
s.name = "auto_click"
s.version = AutoClick::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["erinata"]
s.email = ["erinata@gmail.com"]
s.homepage = "https://github.com/erinata/auto_click"
s.summary = %q{Smulating mouse click, cursor movement and keystrokes}
s.description = %q{Provide several Ruby methods for simulating mouse click, cursor movement and keystrokes in Windows.
s.name = "auto_click"
s.version = AutoClick::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["erinata", "BrianPurgert"]
s.email = ["erinata@gmail.com", "brianpurgert2@gmail.com"]
s.homepage = "https://github.com/BrianPurgert/auto_click"
s.summary = %q{Smulating mouse click, cursor movement and keystrokes}
s.description = %q{this is a Fork of https://github.com/erinata/auto_click
Provide several Ruby methods for simulating mouse click, cursor movement and keystrokes in Windows.
This gem use DL library and SendInput method so there is no dependency on FFI, AutoIt or Win32-api.
Methods include mouse_move(x,y), left_click, right_click, type(string), mouse_scroll(steps), key_up, key_down...etc.
See https://github.com/erinata/auto_click for more details about instalation and usage.
(More control over mouse movement such as speed or locus will be implemented in future releases)}

s.required_ruby_version = '>= 2.3.0'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.licenses = "MIT"
)}
s.required_ruby_version = '>= 2.3.0'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.require_paths = ["lib"]
s.licenses = "MIT"
end


Loading