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

Triggering AutoKey Script via Mouse Button - How To?

I like to trigger an AutoKey script by pressing middle mouse (restricted to a certain application via window filter). Unfortunately AutoKey only lets me set keyboard short-cuts while mouse buttons are completely ignored. It seems AutoKey does not at…
pykong
  • 271
  • 2
  • 12
6
votes
2 answers

How to send a Unicode character with Autokey keyboard.sendkeys()?

I am trying to use Autokey-py3 v0.93.10 (in Linux Mint 18.2), to generate Unicode characters using the keyboard.send_keys command. Unfortunately none of the following attempts work. keyboard.sendkeys("—") keyboard.sendkeys(u"\u2014") or this…
ineuw
  • 105
  • 1
  • 9
6
votes
1 answer

Handling KeyboardInterrupt in a KDE Python application?

I'm working on a PyKDE4/PyQt4 application, Autokey, and I noticed that when I send the program a CTRL+C, the keyboard interrupt is not processed until I interact with the application, by ie. clicking on a menu item or changing a checkbox.…
lfaraone
  • 49,562
  • 17
  • 52
  • 70
5
votes
1 answer

What to do for Autohotkey functions that not available on Autokey

I want to migrate my AHK code to Autokey code for Ubuntu (AHK code monitors clipboard and mouse movements, performs advanced string processing and paste it to the specific window). There are many functions like OnClipboardChange, StringReplace,…
suyogricha
  • 51
  • 3
4
votes
3 answers

How do I stop a while loop when a key is pressed with Autokey?

I'm trying to write a small script with Autokey (not regular Python) on Linux Mint which presses a single key and stops after I press another specific key but I can't get it to stop the loop after I press this specific key. I got the loop working…
minionlou
  • 41
  • 2
4
votes
1 answer

how do I make a fork or non-blocking system call in python

This is related to this question but with a different take. In Ubuntu, I use Autokey, which uses python to automate keystrokes it observes. So I have +e mapped to open Gedit, ++3 to open OOwriter, etc etc. When I make one of…
Krista K
  • 21,503
  • 3
  • 31
  • 43
3
votes
1 answer

Properly Importing a Python Class in Autokey

I have a class of static methods that I wrote as a supplement to the AutoKey API. I would like to include these in my scripts that I write in the autokey editor, but I've not been able to quite figure it out yet as my experience with python is still…
Ken
  • 1,110
  • 2
  • 10
  • 26
3
votes
3 answers

Running one Autokey script from another Autokey script?

Right now I've got two Autokey scripts (for modularity), one that opens a file, and one that puts text in it. The one that opens the file has hotkey F1 (and we'll call this script 1 for simplicity), and the one that puts text in it has hotkey F2. I…
Dr-Bracket
  • 4,299
  • 3
  • 20
  • 28
3
votes
1 answer

Which clipboard Autokey stores the data with "clipboard.get_selection()"

Autokey function, text = clipboard.get_selection(), which clipboard is the selected data is stored? I am using Linux Mint 19.1 Cinnamon with Python 3.6. I am searching for the clipboard storage of Autokey's (Python 3) function, text =…
ineuw
  • 105
  • 1
  • 9
3
votes
2 answers

trying to emulate shift+end with autokey

I'm trying to assign the key shift+end to alt+shift+pageDown. I have the following script: keyboard.send_key('+') And I tried several variants, like: keyboard.send_key('') keyboard.send_key('shift+end') etc... none of them…
opensas
  • 60,462
  • 79
  • 252
  • 386
3
votes
1 answer

Linux - Terminating AutoKey script using keybindings

Okay so I am new with AutoKey application on my elementaryOS device and I am just playing around with some custom scripts. What I did find strange is that there is no simple option to terminate the running script. So, is there any nice and simple…
Adictonator
  • 138
  • 11
3
votes
0 answers

Write and debug autokey script in pycharm

It's definitely difficult to write and debug autokey scripts in it's GUI window. I know that you can run a script using autokey-run --script {script-name}. But is it possible to use autokey module explicitly in a .py file and write a standalone…
NiMa Thr
  • 458
  • 3
  • 12
3
votes
2 answers

Moving cursor with AutoKey script

Is it possible to write an AutoKey script to insert a string and then move the cursor to a position within the imported script? For example, I would like a script that inserts console.log(); and then moves the cursor so that it it between the…
Art Ianuzzi
  • 197
  • 2
  • 8
3
votes
2 answers

How can I move application windows using Autokey?

I'm attempting to resize and relocate various windows I use for work using Autokey to make my morning a little faster. From what I've googled, Autokey uses python to run its scripts. I've also seen half a dozen programs that could do the job for me,…
Azord
  • 43
  • 1
  • 6
3
votes
2 answers

Cycling through webbrowser tabs with autokey

I am trying to make a macro that will cycle through and update browser tabs when hitting 'F10'. Currently it only updates the page I'm currently on, it doesn't cycle through them, I tried googling for it but all the answers were for 'AutoHotKey'. So…
v_johan
  • 470
  • 3
  • 17
1
2 3 4 5 6