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
3
votes
2 answers

AutoKey repeating loop

I have been searching forums and the web for hours looking into a way of making a repeating python loop for Autokey. The goal is to allow timed intervals of key presses, such as pressing "1" every 16 seconds, "2" every 30, so on and so forth for as…
thermad
3
votes
1 answer

Script to copy text in vim and paste to different window

I've been trying to get a script working which would copy a line of text from vim, delete the line, then paste the line to another window. So far I've tried implementing the script with Autohotkey (on Windows 8) and Autokey (on a Ubuntu VM I run).…
3
votes
1 answer

Any way to import autokey libraries into python script

I've become a fan of Autokey for a number of automation tasks and understand how to import & execute python from inside the program what I haven't been able to figure out is how / whether it's possible to import the autokey libraries (python…
Alvin
  • 2,533
  • 33
  • 45
3
votes
2 answers

Get and Set X11 clipboard(s) in Linux

I have Foxit Reader running in WINE on Ubuntu 12.04. I want to copy and paste text into a bookmark, but I need to capitalize it (e.g., fusion becomes Fusion). I want to press F5 and run a python script. I understand this is possible with Autokey,…
mellow-yellow
  • 1,670
  • 1
  • 18
  • 38
3
votes
2 answers

Python script won't work on Autokey

I'm trying to make a html entities encoder/decoder on Python that behaves similar to PHP's htmlentities and html_entity_decode, it works normally as a standalone script: My input: Lorem…
braindamage
  • 2,226
  • 4
  • 24
  • 33
3
votes
2 answers

AutoKey Python - How do I create a global function library

I'm using AutoKey (not AutoHotKey), and I'm noticing that multiple scripts are using the same python functions I've created. Up until now, I've just been defining the same function in each script that uses it. However, if I have to go back and…
Lonnie Best
  • 9,936
  • 10
  • 57
  • 97
2
votes
0 answers

Selecting text with keyboard.send_keys from within an autokey script?

Rather than selecting text and then triggering the script, I'd like my script to select the text. I thought I could select text with keyboard navigation (e.g., "++" to select the word to the left of the cursor. I can do that and…
Eric Niebler
  • 5,927
  • 2
  • 29
  • 43
2
votes
0 answers

Python Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 with autokey

Hi :) I use autokey on raspberry pi os. I just want to use autokey script(autokey-run -s autokeyscript) with crontab (when reboot) However, there are some errors. I have already tried export DISPLAY=:0. But the same error log appears. the crontab…
KangLog
  • 21
  • 1
2
votes
0 answers

Stop AutoKey script if Window is not match and print the ShortCut literal

i use a AutoKey (autokey-gtk 0.95.10) script with the shortcut ü it get errors with: winTitle = window.get_active_title() winClass = window.get_active_class() if winTitle != "0 A.D." or winClass != 'pyrogenesis.pyrogenesis': …
SL5net
  • 2,282
  • 4
  • 28
  • 44
2
votes
2 answers

Emulating Home+Shift+End with Autokey

I simply want to do something like this Home+Shift(down)+End+Shift(up) (up and down represent Shift key being held). This makes it possible to select the whole line which the cursor is on (useful when copying, deleting etc). With AHK, that was done…
Fritjof Larsson
  • 142
  • 2
  • 4
  • 6
2
votes
1 answer

How to configure NTP with autokey using our own Certificates

I am configuring the NTP with autokey to make NTP more secure.I don't want to use default certificate which can be generated using ntp-keygen command line tool. ntp-keygen generates one RSA key, one IFF Key and one md5withRSA signature certificate…
Webster
  • 79
  • 8
2
votes
1 answer

Why is this key remapping not working in Vim?

This problem is getting me really crazy. I used Gvim and Autohotkey under Windows 7 in the past. For various reasons, I mapped CTRL+D to behave likes Enter. This worked well so far. In Gvim I mapped the Enter/Return to act as page down…
Julius Martin
  • 159
  • 2
  • 8
2
votes
1 answer

Does this autokey Python script require concurency?

I switched to Ubuntu recently, and I miss autohotkey. I'm using autokey to recreate my hotkey environment. I've remapped CapsLock to F13 using Xmodmap. What I need to do: When F13 is tapped, return . When F13 is used with a key,…
CornSmith
  • 1,957
  • 1
  • 19
  • 35
1
vote
2 answers

AttributeError: 'CalledProcessError' object has no attribute 'output'

...using AutoKey 0.81.4 on Ubuntu 10.04 relatively new to Linux (<1yr) This is the first python I've written the following script for AutoKey keeps failing with the following error. What am I not getting here?? Script name: 'find files…
kevcoder
  • 883
  • 1
  • 15
  • 29
1
vote
1 answer

How to run AutoKey on Linux from CLI?

I found a linux port of Autohotkey here: https://github.com/autokey/autokey Question: how can I run those AutoKey scripts from command line, or embedded into shell scripts? If not possible, is there any port of Autohotkey for Linux that is able to…
membersound
  • 81,582
  • 193
  • 585
  • 1,120