I want to pass data (several numbers) to a python script and get result (several numbers) back (such as 2+2=4).
I tried using ZeroMQ https://github.com/tinku99/ahkzmq but the dll is probably too old because it fails to load, while downloading a new dll from ZeroMQ (4.0.4_v120.dll, etc) and using it, gives half-result and and then throws error 9.
Yes, I know about IPC but found only python-python and ahk-ahk solutions.
Any help?
Send data to Python script (Messaging Queue) Topic is solved
Re: Send data to Python script (Messaging Queue) Topic is solved
If you run python script from AHK, perhaps you can pass the numbers as parameters/arguments. If you don't - maybe make both scripts wait for a JSON, and if they were saved to file - delete after reading.
Might be not the best solution, but surely an easy one.
Might be not the best solution, but surely an easy one.
Use
Code: Select all
[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.