I would like to do an ALT + TAB after the COPY:
hs.eventtap.keyStroke({"cmd"}, "C")
In this code SOURCE by user: @user3439894
So, normally it would be something like this, as suggested by @Oka:
hs.eventtap.keyStroke({"alt"}, "tab")
and this:
hs.eventtap.keyStroke({"alt"}, {"tab"})
But this doesn't work. Or probably I'm placing it in the wrong place.
And I don't know how to use this suggestions, by Oka:
pushkeycode(L, kVK_Tab, "tab");
SOLVED by @user3439894 in this other post
In this issue, the correct string to use is said to be
"tab".After some digging around in the keycodes extension source code, we can confirm this.
From
keycodes.lua:We can see this set up in the
keycodes_cachemapfunction inlibkeycodes.m: