Hi! I am having trouble finding information on how to create "simulations" of keyboard inputs. For example, I'm trying to automate a game by making the character collect certain itens and sell them, and it would go a little like:
-Hold ARROW UP for 3 seconds
-Collect item pressing E
-Open chat and write "generic teleport command" to go to the market place
-Press U to sell the itens
-Open chat and write "generic home command" to go to the place where it gets the itens
And then repeat all the commands above.
Is this the best way to do what I am planning to do? And, is there a way to do this running in the background, without interfering on other actions(browing web, playing other games, etc)?