Keyboard input simulator

Jan 19, 2017 at 7:37pm
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)?
Jan 19, 2017 at 8:05pm
On Linux and maybe Apple stuff, look into xdotool.
On Windows, look into AutoHotkey.

I am not sure whether or not it's possible to simulate keystrokes for only one client with the two tools above.

Under X Windows, look into XSendEvent();
Under Windows, look into SendInput();
Last edited on Jan 19, 2017 at 8:06pm
Topic archived. No new replies allowed.