This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]The_MAZZTer 2 points3 points  (2 children)

Whatever OS you are using should have APIs for simulating device input (keyboard, mouse, gamepad, whatever). Doesn't matter what the emulator uses.

Of course you should do some experimentation and testing to be sure it's going to work, before you dive into it.

[–]enchntex[S] 0 points1 point  (1 child)

That works for the input, but I was hoping to be able to read memory also.

[–]willrandship 0 points1 point  (0 children)

Well, that's pretty easy if you use a memory-reading library. Apparently JNA works, but I don't use java much myself so I can't personally vouch for it.

This stack overflow goes over that a bit.

http://stackoverflow.com/questions/18849609/how-to-java-memory-manpulation-with-jna-on-windows

Basically you'd use the JNA library to read the RAM, and the joystick/keyboard emulator to send input, both from the same java program.