0

How can I call an .exe file on java (a game for example) and get every pixel of the output everytime I need it (every frame as example) ?

oglosak234
  • 38
  • 1
  • 5
  • 1
    depends on the program, you run. Strarting a program is simpel: `Process process = Runtime.getRuntime().exec(command);` but getting the window is not as simpel. If the programm is running on gpu you just wont be able to do it, if it runs on CPU you could make screenshots of the window, have a look at java Robot klass – Jarlik Stepsto Feb 18 '21 at 12:23
  • Maybe this helps: https://stackoverflow.com/questions/464593/how-to-capture-selected-screen-of-other-application-using-java – lema Feb 18 '21 at 12:26

0 Answers0