I have a script i often use to press keys in windows, but its dependencies don't exist in mac. I found a script here - PyUserInput - but i cant install it.
I wrote this program and want to press tab twice then enter twice (to select a button on a webpage and press it, then confirm) but i cant get any scripts working so cant test it out yet...
import pykeyboard
k = pykeyboard.PyKeyboard()
if key == "tab":
k.press_key(k.tab, n=2)
if key == "tab":
k.press_key(k.enter_key, n=2)
time.sleep(.5)#hold
if key == "tab":
k.release_key(k.tab)
if key == "tab":
k.release_key(k.enter_key)