Send data to Python script (Messaging Queue) Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Posts: 2
Joined: 03 Jun 2018, 08:16

Send data to Python script (Messaging Queue)

03 Jun 2018, 08:29

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 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?
Posts: 404
Joined: 25 Nov 2015, 16:52

Re: Send data to Python script (Messaging Queue)  Topic is solved

03 Jun 2018, 09:28

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.

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.

Return to “Ask For Help”

Who is online

Users browsing this forum: blue83, Qriist and 54 guests