Answer the question
In order to leave comments, you need to log in
How to pass values from C# to Python?
There is a small game on the Unity engine (mine). You need to create a python script that will interact with this game. For example, read some data from it and control the game from a python script. For control, you can use emulation of keystrokes. But I did not understand how to read the values.
Answer the question
In order to leave comments, you need to log in
Python can press keys both programmatically and emulate hardware using the interception driver.
Here is the article: https://habr.com/ru/post/346258/ About the exchange of data between
applications
- here https://habr.com/en/post/346258/
memory mapping
https://docs.microsoft.com/en-us/dotnet/standard/i...
You can still use sockets for example, but this is more suitable for network applications than for two processes on one PC.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question