but the keyboard emulator you want to build would be as stupid as a keyboard, it would not know if there is a login window where it sends the user password combination to, it could be, that you are logged in already, use word ... and the keyboard emulator detects your "batch" and sends your user an...