I'm trying to send a few simple keys to a DirectX 11 game after a certain picture is shown on screen.
Problem is the proper keys isn't being sent through the robot class, VK_UP simply isn't being sent.
My thought was to send through directinput instead and just hope it works, but I don't know how to do this in Java?
Re-write in C# isn't an option since I'm using sikuli for Java for image recognition.
try https://github.com/umer0586/winKeyboard
Keyboard keyboard = new Keyboard();
keyboard.winKeyPress(ScanCode.DIK_UP);
//Thread.sleep(1000);
keyboard.winKeyRelease(ScanCode.DIK_UP);