First I had a stroke so I learned to type from the middle of the keyboard with one hand. I use alt + k
for example to hit return. Anyways this script I use for Windows Auto Hot Key.
!f::Send, {Tab}// alt + f = tab
!k::Send, {Enter}// alt + k = enter
!i::Send, {Backspace}// alt + i = backspace
!y::Send, {Up}// alt + y = up arrow
!h::Send, {Down}// alt + h = down arrow
!g::Send, {Left}// alt + g = left arrow
!j::Send, {Right}// alt + j = right arrow
!,::Send, {=} // alt + , = =
!.::Send {U+0060} // alt + . = `
!/::Send, {-}// alt + / = -
^,::Send, {[}// ctrl + , = [
^.::Send, {{}// ctrl + . = {
^/::Send, {(}// ctrl + / = (
^m::Send, {:}// ctrl + m = :
^n::Send, {$}// ctrl + n = $
I'm trying to do the same thing for Ubuntu Autokey.
From the documentation, I tried a few different things.
keyboard.send_key(enter, repeat=1)// NameError: name 'enter' is not defined
keyboard.send_key(return, repeat=1)// NameError: name 'return' is not defined
keyboard.send_key("enter", repeat=1)// nothing no error but does not hit enter.
Is there a key list I should be using because I can't seem to find it.
Does anybody know what I'm doing wrong? I'm currently learning javascript from TOP so not trying to learn python atm. But I think I can pull it off with an example or two.