pip install keyboard
import keyboard
import time
while True:
if keyboard.read_key(suppress=True) == 'f1':
keyboard.write('Login')
time.sleep(0.1)
keyboard.send('tab')
time.sleep(0.1)
keyboard.write('Pass')
time.sleep(0.1)
keyboard.send('enter')
F1::
Send login
Sleep, 100
Send {Tab}
Sleep, 100
Send password
Sleep, 100
Send {Enter}
return