scrcpy-opencv icon indicating copy to clipboard operation
scrcpy-opencv copied to clipboard

example code for implementing in another game

Open fronfron opened this issue 2 years ago • 2 comments

i wanted to use this software to win in another android game. how can this be used? in which language should i develope it? can you give an example of the script used in this case and where to modify it?

fronfron avatar Sep 06 '23 08:09 fronfron

Hello @fronfron , you can find the code I wrote for this specific game in https://github.com/RobbertH/scrcpy-opencv/blob/master/scrcpy/app/src/opencv_injection.cpp

The language used is C++.

What you would need to do is modify the opencv_injection.cpp file to implement the logic for winning your game.

RobbertH avatar Sep 06 '23 10:09 RobbertH

But I would first try to see if this compiles on your machine. There instructions for that in the readme of this repository. Good luck!

RobbertH avatar Sep 06 '23 11:09 RobbertH