Questions tagged [autokey]

AutoKey is a desktop automation utility for Linux and X11

From the AutoKey website:

AutoKey is a desktop automation utility for Linux and X11. It allows you to manage collection of scripts and phrases, and assign abbreviations and hotkeys to these. This allows you to execute a script or insert text on demand in whatever program you are using.

84 questions
0
votes
0 answers

Is there a way to emulate keystrokes and mouse-clicks in a Linux OS such as Raspbian?

I am working on a project that edits photos of mine and then uploads those photos to a google site. I'm using Selenium to upload the photos to the portfolio site, but I need a way to select the image I want to upload from the file manager. The idea…
noahjillson
  • 122
  • 7
0
votes
1 answer

Reading numbers with AutoKey is slow

i want get pressed number via AutoKey. My Script works but is really slow and looks not very good. May you know a faster way? I need hold down a key some seconds before its recognized. import os, time, subprocess def popupNotify(text): …
SL5net
  • 2,282
  • 4
  • 28
  • 44
0
votes
1 answer

change a json value with a Python 3.8 script

I want change one json value with a Python 3.8 script. I know in Python, strings are immutable, so you can't change their characters in-place. This helps my much: How to find and replace a part of a value in json file TypeError: 'str' object does…
SL5net
  • 2,282
  • 4
  • 28
  • 44
0
votes
0 answers

Python (AutoKey) loop surprisingly has no result

While i try to find out if window is closed in (Linux) wine my python loop has a strange and (for me) logical behavior. the source with this loop beginning (Source 1): for x in range(0, 290): # default is 25 keyboard.send_keys("\n#40 x='%s'" %…
SL5net
  • 2,282
  • 4
  • 28
  • 44
0
votes
2 answers

SyntaxError:(unicode error) 'unicodeescape' codec' can't decode bytes in position 0-5: truncated \UXXXXXXXX escape

Using Autokey 95.8, Python 3 version in Linux Mint 19.3 and I have a series of keyboard macros which generate Unicode characters. This example works: # alt+shift+a = á import sys char = "\u00E1" keyboard.send_keys(char) sys.exit() But the…
ineuw
  • 105
  • 1
  • 9
0
votes
1 answer

How can I emulate pressing CTRL+ALT+PAUSE in my Linux VM using AutoKey?

Question: How can I emulate pressing CTRL+ALT+PAUSE in my Linux VM using AutoKey? I tried a script that has keyboard.send_keys("++") in it. But it does not work. Background: I'm using Windows 10 and RDP to log into a Fedora Linux.…
0
votes
1 answer

Make auto key and mouse press on activate window on Python

I want to write an app in Python on Windows to do some jobs repeatedly. For example, I need to convert some files into other type. I have a software installed in Windows to do that. However, that program was designed to do it file by file. Now I…
0
votes
1 answer

How to properly run a mouse-imitating macro with the Input of a controller?

I've searched through many internet forums to find pretty much nothing, that can solve my problem: I'm a former user of the scripting Language AutoHotKey, so as I'm also using Linux, I want to properly imitate the same code I have in AutoHotKey to…
FunnyO
  • 383
  • 2
  • 20
0
votes
1 answer

Autokey won't start on Fedora 29

I've been trying to get autokey to work on a fresh install of Fedora 29. Every attempt to start the application was met with an error and the process would die. encountered an uncaught pkg_resources.DistributionNotFound
SkyVar
  • 331
  • 2
  • 6
  • 17
0
votes
1 answer

code to insert date and day as yyyy-mm-dd Ddd

Objective: with a shortcut, e.g. alt+d, insert yyyy-mm-dd Ddd Example of Ddd: Mon I have the following code for an Autokey script from datetime import datetime keyboard.send_keys(datetime.now().strftime('%Y-%m-%d')) That only gives me the…
Klaas Vaak
  • 21
  • 3
0
votes
1 answer

MATE desktop popup window class for AutoKey

In MATE desktop in Fedora 28, I have set a shortcut for switching windows using a popup window to Super-j. I've discovered AutoKey that allows you to re-map the keys for certain applications/windows. It has a script that tells you what the window…
Arktik
  • 263
  • 3
  • 13
0
votes
1 answer

Create a delay between mouse clicks using Autokey

I am about to switch from Windows to Ubuntu. Since my mouse keeps doing multiple clicks each time I press the middle mouse button, I used AutoHotkey under Windows to add a delay after each click. This worked fine. Now under Ubuntu I want to use…
Emberwit
  • 1
  • 2
0
votes
1 answer

Autokey Loops: Performing keystrokes 10 times

While using Thunderbird and the Flashgot extension, I would like to download all attachments from 10 messages at a time. The sequence is ctrl-F3, enter, delete, repeat. I need 5 second pauses to allow messages to load and attachments to download. My…
0
votes
1 answer

set the cursor inside the function "keyboard.send_keys"

I'm trying to set a shortcut in order to send an output like this: [DATE]_[thecaret/cursor].somethinelse For example: 18-02-18_[myCursorHere].png This is the script for AutoKey under linux: output = system.exec_command("date…
Santiago
  • 361
  • 4
  • 21
0
votes
1 answer

set up a shortcut / keybinding under GNU/Linux with altGr key (but Autokey nor other methods reconize the key)

I need to do a simple shortcut and this problem is driving me crazy. Whenever I press AltGR+Backspace I would like to simulate a CTRL+LEFT(arrow). The thing is that AutoKey doesn't get the AltGR input (and neither xbindkeys or other methods). I…