Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
-- This file is part of Xdo. Copyright © 2009, 2010 Marvin Gülker Initia in potestate nostra sunt, de eventu fortuna iudicat. ++ =XDo XDo is a library to simulate keyboard and mouse input and manipulating windows on the X server. It's wrapped around the command-line tools xdotool[http://www.semicomplete.com/projects/xdotool/], xsel[http://linux.die.net/man/1/xsel], xwininfo[http://linux.die.net/man/1/xwininfo], eject[http://linux.die.net/man/1/eject] and xkill[http://linux.die.net/man/1/xkill], so you will need to have them installed if you want to use Xdo (even if xwininfo, eject and xkill are usually already installed). If not, try to install them via your favourite packaging manager. After they're installed, install XDo via RubyGems: sudo gem install xdo ==Usage #Require some of XDo's files require "xdo/keyboard" require "xdo/mouse" require "xdo/xwindow" #Move the cursor XDo::Mouse.move(100, 100) #Simulate text (with special escape sequences!) XDo::Keyboard.simulate("This is{TAB}text.") #Some sequences can be shortened: XDo::Keyboard.simulate("This ist\ttext.") #And this will move a window containing the string "gedit", #unless it's maximized. win = XDo::XWindow.from_title(/gedit/) win.move(200, 200) ==Files You can require the following files in your projects:
FAQs
Unknown package
We found that xdo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.