What are the mouse scripts for Autokey?

(Autokey's documentation is discontinued so i am posting here since it's a Linux software and there is no forum available)

I use Autokey to create macros for games, but i haven't found in the documentation the script to:

  • do a right click

  • do a left click

  • do a middle click

  • move the cursor to a specific location

4

1 Answer

To click use this two commands:

mouse.click_relative_self(x, y, button)
mouse.click_absolute(x, y, button)

The first command is relative (to click near the mouse's current location) the second is absolute (from the entire screen). The button takes 3 arguments:

1: left click

2: middle click

3: right click

For example in a strategy game to perform a right click at the mouse's current location do this:

mouse.click_relative_self(0, 0, 3)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like