Linux mouse and keyboard automation software tools

Linux Mouse and Keyboard Automation Software Tools

This Website provides Keyboard and Mouse Automation Tools for Linux. There are so many variants of Linux and the Automation Tools offered here will be tested on every possible Linux distribution. Initial Testing of all the Automation Tools offered here are done on Linux Mint, Ubuntu, Kubuntu, Fedora, etc. which are one of the best Linux Distros. When using any of the Linux Mouse Automation Tool presented on this website, you would not need to go to Terminal and struggle with complex commands. Linux Automation Tools offered here are at par with available Windows Automation Tools and are extremely user friendly.

You can also find similar tools for OS Automation for Windows 8, Windows 7, XP, Vista and other 32 bit and 64 bit versions of Microsoft Operating System at as Auto Clicker and also on Apple Macintosh using Mac OS X Auto Clicker for Mac 10.5 onward versions.

Linux Auto Mouse Click Software

The Linux Auto Mouse Click Software presented here is a Linux Mouse Automation Tool. Just have a close look at the given below screenshot of the software and you will notice that there is everything you would need to automate your Linux tasks using Mouse Clicks. There are some commands in the Menu of this Linux Automation Software to save Screen Area of this Linux Automation Tool. Download Video Tutorial displaying how to use the Linux Auto Mouse Click Software to Automate Mouse Clicking and Keyboard Typing.

Whether you are using your Linux on Single or Multiple Monitor Computer, every Pixel on your Monitor is defined by X and Y Co-Ordinates. On a Basic Single Monitor Linux Computer, value of X Co-Ordinates start at Left Hand Side and go on increasing to the right. Similarly values of Y-Co-Ordinates starts at top and go onto increasing towards the bottom of the screen. Total Number of Pixels together define the Screen Resolution.

This Linux Mouse Automation Software displays X and Y Co-Ordinates of the Mouse Cursor at the top right corner. In order to understand the X and Y Co-Ordinates, just move the Mouse Cursor around the screen and notice the X and Y Co-Ordinate Values change in the software.

In order to click at some location on the screen automatically with this Linux Automation Software, you would need to specify the X and Y Co-Ordinates of that particular location. Separate Edit Boxes have been provided on the software’s main screen to capture X and Y Co-Ordinates. In order to fill in the X and Y Co-Ordinates, you can use a System wide Keyboard Shortcut. The System Wide Keyboard Shortcut is a Key Combination (Configurable from Settings of the Software) which works even when this Linux Automation Tool does not have Focus. Just Move the Mouse Cursor to the desired location and press the System Wide Keyboard Shortcut Key to automatically enter the screen location in the edit boxes provided. Configure other parameters and then press the Add Click Button to store the Mouse Click in the List of Mouse Click to Automate.

Have a look at the Software Screenshot again and notice the Status Bar of the Software. Yes Another Configurable Keyboard Shortcut allows you to add the Mouse Click automatically to the script using a single keyboard key press.

The System Wide Keyboard Shortcuts can be configured using Settings of the Software. In order to launch the Settings screen, navigate to the Edit Menu and select the Menu Item labeled Settings or press F7 to invoke the settings screen.

Читайте также:  Realtek gaming gbe family controller драйвер windows 10

To Auto Click at Current Mouse Cursor Location and Not a pre-determined location identified by X and Y Co-Ordinates, add a Click at X = 999 and Y = -999. Once you add a Mouse Click at X = 999 and Y = -999 and run the script, the script will determine the mouse cursor position and will then click at that particular location. Yes this Linux Automation Tool cannot click at X = 999 and Y = -999 and any type of click added with these co-ordinates get converted to current mouse cursor location.

Type of Mouse Click which can be Auto Clicked using this Linux Automation Tool

Given below types of mouse clicks can be automated using this Linux Auto Clicker Software. The Screenshot of the software also displays various types of mouse click that can be sent to active gui application.

  • Single Left Mouse Click or just Click.
  • Double Left Mouse Click or simply Double Click.
  • Ctrl (Key on Keyboard) + Left Mouse Click.
  • Shift + Left Mouse Click.
  • Middle Mouse Click.
  • Right Mouse Click.

Источник

Автоматизируем щелчки мышкой в Linux: xdotool

Эта очень короткая заметка на примере активации ключей в Steam описывает процесс автоматизации операций, выполняемых при помощи мыши и клавиатуры.

Допустим, вы купили несколько наборов игр Humble Bundle. Теперь у вас есть, например, 5 ключей для активации в Steam. А может быть 15 или даже 25. Вы очень не хотите активировать их вручную, потому что это слишком муторно: в клиенте Steam нужно каждый раз наводить курсор на меню «Games», щёлкать, потом наводить курсор на пункт меню «Activate a Product on Steam…», опять щёлкать, потом нажимать Enter, потом ещё раз Enter, и только затем наконец-то вводить ключ (а потом нужно подождать, ещё раз нажать Enter, затем Escape). А потом повторять то же самое для каждого последующего ключа. Как писал Леонид Каганов, стоило ли вообще ради такого «прогресса» спускаться с пальмы и брать в руки каменный топор?

В общем, вы решили этот процесс автоматизировать — тем более, что задача-то, на самом деле, очень простая. Для её решения нам потребуются консольные утилиты xdotool и xclip — убедитесь, что они установлены у вас в системе.

Для начала вы собираете ключи с веб-страницы, чтобы затем записать их в текстовый файл, по одному на строку. Естественно, не вручную. Например, со страницы Humble Budle их можно собрать, выполнив через JS-консоль что-нибудь в таком духе:

Получается текстовый файл с примерно таким содержимым:

При сохранении текстового файла убедитесь, что в конце есть перенос строки (некоторые текстовые редакторы не добавляют его автоматически). Иначе при выполнении скрипта последний ключ не будет активирован.

Далее вам нужно открыть Steam и определить координаты тех точек, куда нужно будет автоматически перемещать курсор. Таких точек две: во-первых, точка для первого щелчка (меню «Games»), во-вторых, точка для второго щелчка (пункт меню «Activate a Product on Steam…»). Тут по настроению — можете получить координаты с помощью команды getmouselocation, а можете их подобрать.

В первом случае можно либо запустить xdotool через watch (для автоматического перевыполнения команды через определённый интервал времени), либо добавить sleep.

То есть либо запускаете watch xdotool getmouselocation и наводите курсор на нужное место экрана, посматривая при этом в консоль и запоминая значения нужных точек, либо запускаете xdotool sleep 5 getmouselocation и получаете координаты той точки, где курсор оказывается через 5 секунд после запуска команды (соответственно, смотреть в консоль или запоминать координаты не нужно — достаточно будет просто успеть поместить курсор в нужное место, и уже потом переключиться к консоли).

Во втором случае вы пишете, допустим, xdotool mousemove 52 38 , выполняете, смотрите, где оказался курсор, а потом меняете числа, пока не найдёте подходящие. Этот вариант более весёлый, поэтому, думаю, многие предпочтут сделать именно так.

Теперь, когда у нас есть нужные координаты, давайте действовать итеративно: прежде всего попробуем автоматически пройти до момента ввода ключа.

Читайте также:  Windows 10 смена экрана пароля

Для этого будем использовать команды mousemove, click, sleep и key. Список команд, кстати, можно посмотреть в документации по xdotool.

xdotool mousemove 210 105 click 1 mousemove 210 160 sleep 0.1 click 1 sleep 0.1 key Return sleep 0.1 key Return

Если в точке, куда в первую очередь перемещается курсор, не Steam, а какое-то другое окно (например, если Steam скрыт за окном терминала), то нужно добавить команды windowactivate/windowfocus, чтобы сначала отобразилось окно Steam, и уже затем выполнялись следующие команды.

steam_window=48234551 ; xdotool windowactivate $steam_window windowfocus $steam_window sleep 0.5 mousemove 210 105 click 1 mousemove 210 160 sleep 0.1 click 1 sleep 0.1 key Return sleep 0.1 key Return

Чтобы получить идентификатор активного окна, вы можете использовать команду getactivewindow (если окно Steam будет активно через секунду после выполнения команды xdotool sleep 1 getactivewindow, то в консоли отобразится его идентификатор). Кроме того, для команды getmouselocation (см. выше) также указывается идентификатор окна, над которым находится курсор.

Теперь давайте попробуем написать небольшой скрипт, который читает файл с ключами и поочерёдно их активирует.

Скрипт можно назвать, например, activate_steam_keys.sh.

Разрешаем для файла выполнение и запускаем скрипт. При этом передаём скрипту аргумент — имя файла с ключами.

chmod +x activate_steam_keys.sh
./activate_steam_keys.sh steam_keys.txt

А дальше просто смотрим на экран и наслаждаемся процессом. Всё-таки хорошая идея была взять тот каменный топор.

Источник

Linux mouse and keyboard automation software tools

A keyboard and mouse automation tool

What does this do?

Have you ever had to click here, then there, then here again over and over?
Ever wish you could just have the keyboard and/or mouse just do something for you?
This might not be for you. Then again, it might. I’m not here to tell you what you should and shouldn’t be using, this is just a fun project for us.

How do I use it?

Install python and the one non-standard library we use, pyUserInput. Python downloads can be found here
The pyUserInput library and instructions for installing it can be found here
Once that is done, run the AutoPyLit.py file by executing it from command line or just clicking on it. Your preference.
If you choose command line, your command will look something like this:
Windows
python C:\Users\username\Desktop\AutoPyLit.py
Linux
python ./AutoPyLit.py
This command takes no arguments.

I made some actions and I want to save them.

Click save. Pick a spot for the file to go, then save it.
The file will save as a .FECN file type.

It doesn’t work.

Try troubleshooting it by doing some very simple tasks first, such as clicking on a target or passing a Ctrl+Shift+Esc, then gradually make them more complex. Also be aware that because of the limitation of pyUserInput, the keyboard automation does not work in Mac.
Yeah, you read that right. Something works better in Windows than it does in Mac. It’s crazy, we know.
One last note about things you can and cannot do: Ctrl+Alt+Delete isn’t working so well right now.

It still doesn’t work.

Have you tried turning it off and on again?

Yes.

Create an issue, we’ll look at it right away.

Will you update this?

No plans to. Use AutoHotKey instead.

Your GUI is ugly. Why isn’t that a planned update?

Thanks for noticing.

Libraries we use (in case you get a dependency error)

  • Tkinter
  • pyUserInput (specifically, pykeyboard and pymouse)
  • os
  • time
  • ctypes
  • platform
  • Some windows installs need win32api

What python version are you using?

2.7.5
There is allegedly a bug with Tkinter in Mac Mavericks that is slated to be fixed in Python 2.7.6.

**I wrote my own FECN File. Can I use that?

Go get ’em, Tiger.

Can I share/modify/steal this code?

This programs’ code is licensed under the GNU GPL, which can be found here. And the README (what you’re reading) is copywritten under this license.

Читайте также:  Lxde для linux mint

Required input formats for the GUI

This is a box by box breakdown of the input format required for each field.

Note: Only fill out one input field per action.

«Click at Coordinates (x,y)»

If you choose to manually include the mouse coordinates, they must be in the following format:
(100, 100) That is, open paren then integer, comma, space, integer, close paren. You may not use a decimal ####»Pass Keystrokes» There are two kinds of keystrokes that can be passed here: literal (like a string) and special keys. A special key is entered without quotes, and a literal string is entered with quotes. Plus symbols go between keystrokes If you are passing a literal string, it is always the last item. F-keys populate as F[x] . Fill in the space between brackets with the specific F-key you want to use.

  • Ctrl is interpreted as the control key
  • «Ctrl» is interpreted as sending a string that contains the characters ‘Ctrl’ (as though you typed them instead of pressed the Ctrl key)
  • Ctrl+Shift+Esc
  • «Hello world!»
  • Ctrl+»a»
  • Alt+F[4]

Does exactly what it sounds like. It waits the number of seconds you tell it to. Note: You can put a float/decimal in this field.

«Wait for window»

This field scans all visible (minimized and otherwise) windows and fires the next action only if a window has in its name the string you passed in. Example: «Manager» will execute if «Windows Task Manager» appears. This is case sensitive.

«Enter Comment with Action»

This is for your own personal reference. Put anything you want here. It’s not included in the mandatory fields, nor does it count against your one entry field maximum.

Staring Num/Ending Num

This is in case you want to output for a certain number of times and include that counter in your output. If you don’t care, just start at 1 and end on the number of times you would like to iterate. Example: Starting Num: 1 Ending Num: 100 or Starting Num: 50 Ending Num: 60

Starting from the top down:

This button learns the position of your mouse. Upon clicking, move the mouse to the desired click location for the action. Press ‘m’ and viola! The coordinates populate in text box to the left. Note: This is the recommended method. Click «Save Action to see it populate in the Action List.

This is a dropdown menu for selecting special keys to pass. Note: the only special keys supported are the ones in this list. Note: Doesn’t work on Mac. Once you have the special key selected, click it, then click the Add button. Lather, rinse, and repeat until you have the desired key combination. Click «Save Action to see it populate in the Action List.

Delete Action/Save Action

Save action takes any actions listed in the fields above and sends it to the action list. Delete action deletes the currently highlighted action from the action list.

Up and down arrows (to the right of the action box)

Moves the highlighted event up or down in the order of occurrence in the action list.

Load/Save/Save Config As

  • Load config loads a configuration
  • Save config saves your config if you already have a file name
    • If you have not loaded a file or saved a file already, you will be prompted to give the file a name at this time
  • Save Config As prompts you to name the file as you save it.

Clears the action list and any input in the text boxes

Take a wild guess.

About

A keyboard and mouse automation tool for Mac, Windows, and Linux

Источник

Оцените статью