All Projects → youpy → mac-robot

youpy / mac-robot

Licence: MIT license
A Library to Automate User Interactions

Programming Languages

ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to mac-robot

time-travel
An rsync based backup script which only transfers modified files. Smooth integration into OSX Notification Center.
Stars: ✭ 43 (+26.47%)
Mutual labels:  mac
dotfiles
🔨 My dotfiles for setting up my Macs with Ansible
Stars: ✭ 31 (-8.82%)
Mutual labels:  mac
mac-branch-deep-linking
The Branch SDK for Mac OS X - Docs:
Stars: ✭ 15 (-55.88%)
Mutual labels:  mac
sepia-assist-server
Core server of the SEPIA Framework responsible for NLU, conversation, smart-service integration, user-accounts and more.
Stars: ✭ 81 (+138.24%)
Mutual labels:  mac
Linux Dynamic Wallpapers
Dynamic Wallpapers for Linux
Stars: ✭ 305 (+797.06%)
Mutual labels:  mac
countly-sdk-cpp
Countly C++ SDK for Windows, MacOS and Linux
Stars: ✭ 27 (-20.59%)
Mutual labels:  mac
homebrew-srm
Homebrew tap for srm since Apple and Homebrew decided nobody had mechanical disks anymore.
Stars: ✭ 14 (-58.82%)
Mutual labels:  mac
BaNG
Backup Next Generation for Linux & Mac using rsync (support hardlinks and btrfs snapshots), Web-Frontend, Statistics, History-Merger)
Stars: ✭ 28 (-17.65%)
Mutual labels:  mac
x-ray
See the wifi password of the network you're on
Stars: ✭ 13 (-61.76%)
Mutual labels:  mac
awesome-mac
A repo to introduce awesome applications and tools in my mac.
Stars: ✭ 24 (-29.41%)
Mutual labels:  mac
WebDGap
WebDGap allows you to convert any website or HTML/CSS/JavaScript web application to a native Windows, Mac, Linux, PhoneGap, and Chrome application/extension.
Stars: ✭ 106 (+211.76%)
Mutual labels:  mac
dotfiles
Zero friction mac and linux bootstrap
Stars: ✭ 15 (-55.88%)
Mutual labels:  mac
macstrap
Set up your macOS from scratch.
Stars: ✭ 16 (-52.94%)
Mutual labels:  mac
support-dashboard-desktop
A Mac, Windows, Linux, and Chrome dashboard encompassing the services and support tools I use to manage Klinker Apps.
Stars: ✭ 35 (+2.94%)
Mutual labels:  mac
ssh-tools
😭没找到好用的shell工具✌️自己实现类似Xshell的部分功能
Stars: ✭ 92 (+170.59%)
Mutual labels:  mac
gifbar
🦄 Find Awesome Gif's right in your Menu Bar
Stars: ✭ 37 (+8.82%)
Mutual labels:  mac
mute-spotify-ads-mac-osx
Mute Mac (osx) computer audio when Spotify plays an AD
Stars: ✭ 78 (+129.41%)
Mutual labels:  mac
sixarm mac osx installation help
SixArm.com » Mac OSX installation help, notes, and guides
Stars: ✭ 22 (-35.29%)
Mutual labels:  mac
gitx
The best fork of the best lightweight, visual git client for macOS.
Stars: ✭ 529 (+1455.88%)
Mutual labels:  mac
sloth-app
Sloth desktop app
Stars: ✭ 16 (-52.94%)
Mutual labels:  mac

mac-robot

A Library to Automate User Interactions

Synopsis

require 'mac-robot'

robot = Mac::Robot.new

Automate mouse

robot.mouse_press
robot.mouse_move(250, 250)
robot.mouse_drag(100, 200)
robot.mouse_release

robot.mouse_current_location # => 100, 200

robot.scroll_wheel(:x => 10, :y => -20, :z => 5)

Automate keyboard

[0x04, 0x0e, 0x25, 0x25, 0x1f].each do |keycode|
  robot.key_press(keycode)
  robot.key_release(keycode)
end

Get color of given pixel on screen

color = robot.get_pixel_color(10, 20)
color.red
color.green
color.blue
color.alpha

Contributing to mac-robot

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.

  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.

  • Fork the project.

  • Start a feature/bugfix branch.

  • Commit and push until you are happy with your contribution.

  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright © 2012 youpy. See LICENSE.txt for further details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].