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

SL5net

is it possible to send the alt+tab for switch to last window with AutoKey ?

i tried without success:

keyboard.send_keys("<alt>+<shift>+<tab>")

Or forward window:

keyboard.press_key('<alt>')
keyboard.press_key('<tab>')
keyboard.release_key('<tab>')
keyboard.release_key('<alt>')

Or backward window:

keyboard.press_key('<alt>')
keyboard.press_key('<shift>')
keyboard.press_key('<tab>')
keyboard.release_key('<tab>')
keyboard.release_key('<shift>')
keyboard.release_key('<alt>')

result: no error but only moves the tab count inside the editor.

Joe

TL;DR: Not directly with our API.

The AutoKey API talks directly to the current active window. So, sending events targeted at the desktop (DTE) will only work if the current active window recognizes them as such and either forwards them to the DTE or emulates what they do.

However, since AutoKey scripts are written in full Python 3, if you can figure out how to do it yourself in Python, AutoKey can run it for you. And, if some other solution is available, you can run it from within an AutoKey script using the subprocess module.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Linux - Terminating AutoKey script using keybindings

Triggering AutoKey Script via Mouse Button - How To?

autokey vigenere decryption in c#

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

Emulating Home+Shift+End with Autokey

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

Running one Autokey script from another Autokey script?

alt+tab application switcher like in windows 7

How to make alt-tab switch quickly?

How to make Alt+Tab return to same application window as last used (Unity)

Alt-Tab works only for the current active application on 14.04 gnome+metacity

How to send "@" using AutoKey on Ubuntu 14.04?

Alt+Tab behaves like Alt is sticking (but it is not)

How do install AutoKey?

What are the mouse scripts for Autokey?

How to use the alt-tab-menu to switch immediately to the last used window [GNOME 3.32.2 @ Manjaro]

How to make tab active when application load using tabset?

Windows: directly switch to a specific application instead of tabbing through using alt+tab

How can autokey be scripted to close an active window?

Why can't I output a combination of three keys using AutoKey on Ubuntu 17.04?

How can I simulate Alt F4 using Autokey or another method

Command to switch to the last terminal tab

How to switch to active tab in Selenium

autoKey gtk 0.95.10 Icon get red an autoKey freezing

Switch To the last mat-tab with if(){}

How to run autokey python script as root

Make element selected/active (like when you using tab)

Autokey Encryption

Alt+` (tilde or back tick) switch windows like alt-tab in Windows 10