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
1
vote
0 answers

Autokey minimizing fullscreen apps when script runs

I am trying to make a script to take the non functional ingame side buttons of my mouse and redirect them to keyboard keys. I successfully did that however there is a problem, every time I press the hotkey running the script my game minimizes. is…
1
vote
0 answers

Autokey: window.get_active_title() throws error sporadically

Calling this statement causes AutoKey to crash and require a full restart, it happens randomly. targetScan = window.get_active_title() Autokey: 0.96.0-beta.5 Python: 3.10.4 It used to work reliably I think on an older version of Python. If I…
Kreezxil
  • 11
  • 4
1
vote
1 answer

Autokey: sporadic error on system.exec_command

I have a script that grabs the window title and writes out a debug statement based on whether the file title includes a certain string. active_title = window.get_active_title() counter = system.exec_command("date '+%s'") newcounter =…
Bill in Kansas City
  • 360
  • 1
  • 5
  • 21
1
vote
0 answers

Issue with simple script mouse click script (Autokey)

I am using a gis software that has 2 windows, I have window A opened in my primary monitor and window B opened in the secondary monitor. I am trying to make a script that will move the mouse to the secondary monitor and left click a certain…
1
vote
1 answer

Autokey - how to set a phrase folder in a single order?

I feel like I'm missing something obvious here, but I can't find it. I'm using Autokey in a rather simple setting - I have the default folder loaded with some phrases that I don't feel like typing out or finding and copy-pasting when I need them…
1
vote
1 answer

getkey in AutoKey

howto wait for key pressed with autokey? for AutoKey i found the wait_for_keypress but its not what i searching for. its wait for a defined keypress or key combination. i want wait for a,b,... z is pressed. i searched…
SL5net
  • 2,282
  • 4
  • 28
  • 44
1
vote
1 answer

Simulate mouse scrolling in Ubuntu

I using Python autopilot.input.Mouse in AutoKey for simulate mouse (move, click) in Ubuntu and search a solution for mouse wheel scrolling down My AutKey-Prototype using pyautogui (installed by pip3 install pyautogui linuxhint.com) does nothing: #…
SL5net
  • 2,282
  • 4
  • 28
  • 44
1
vote
2 answers

AutoKey: Switch to last active application like Alt-Tab by using AutoKey

is it possible to send the alt+tab for switch to last window with AutoKey ? i tried without success: keyboard.send_keys("++") Or forward…
SL5net
  • 2,282
  • 4
  • 28
  • 44
1
vote
1 answer

move mouse relatively in Linux

I want to move my mouse relatively to the right. I already installed Python (3.8.2 (default, Jul 16 2020, [GCC 9.3.0]) inside AutoKey 0.95.10. My prototype (below) can do absolutely move. Is that possible with autopilot.input or do I have to try…
SL5net
  • 2,282
  • 4
  • 28
  • 44
1
vote
1 answer

How to wrap the select text in quotes ("") in Autokey?

I use the following script to add apostrophes ' around text when a specified hotkey is pressed: text = clipboard.get_selection() keyboard.send_key("") keyboard.send_keys("'%s'" % text) Changing the last line to keyboard.send_keys(""%s"" %…
user598527
  • 175
  • 13
1
vote
1 answer

The little loop runs too often

i have wrote a simple Phyton in AutoKey script. I expected the cursor runs one line down. But the cursor runs many 1000 lines down. That takes some minutes. for i in range(0, 1): keyboard.press_key('') i tried to uninstall other software…
SL5net
  • 2,282
  • 4
  • 28
  • 44
1
vote
1 answer

Autokey error: global name 'keyboard' is not defined

I have a file in a user folder for Autokey, that has a function I'd like to call from Autokey scripts. The function uses keyboard.send_key (and .send_keys), but Autokey throws the error global name 'keyboard' is not defined. In Autokey: import…
Bill in Kansas City
  • 360
  • 1
  • 5
  • 21
1
vote
1 answer

autokey shift and right mouse click

I am trying to make a script in linux that uses Shift + right click in eight desired positions. I already tried to emulate autohotkey in linux but it doesn't work correctly. This is an example of autohotkey code "+" means "Shift" on autohotkey Send…
Tibia REC
  • 11
  • 1
1
vote
2 answers

Can I replace Tab key as the trigger key in autokey?

I have recently started using Autokey on a Raspberry Pi. I have it installed and operating as expected. The one issue I have encountered for which I cannot find a solution is that I would like to use the backtick key to trigger text expansion. I…
user2800929
  • 31
  • 1
  • 5
1
vote
1 answer

How can I use Autokey to grab highlighted text + url and then insert said highlighted text + url in the placeholders of a phrase?

I'm trying to get Autokey to work like Autohotkey worked for me in Windows. One very useful function that was possible to set up in Autohotkey was assigning a keyboard key to grab highlighted text, then go to url, grab that url, and then insert the…