Page 1 of 1

Is it possible to communicate between 2 pcs via AHK?

Posted: 11 Dec 2017, 12:15
by WuffTheCoder
Is it possible to communicate between 2 pcs via AHK?

Example:
pc1: press alt+f1 opens up a window where you can type, type there: "hello" and press send
pc2: message box pops up saying "hello"

Re: Is it possible to communicate between 2 pcs via AHK?

Posted: 11 Dec 2017, 13:37
by vasili111

Re: Is it possible to communicate between 2 pcs via AHK?

Posted: 11 Dec 2017, 14:28
by Delta Pythagorean
Yes and no. Yes you can do it. No, it's not going to be easy :P

Re: Is it possible to communicate between 2 pcs via AHK?

Posted: 11 Dec 2017, 15:17
by euras
It needs to be 2 codes, runing on different computers. Lets say code no.1 sends a text "Hello world!" to document in a place, which is acessable to both computers. Code no.2 reads the document every 10 seconds and if it finds something in the document, it shows the content in a message box. Does it looks like you are sending a message to the other computer? Yes. Is it true? No.

Re: Is it possible to communicate between 2 pcs via AHK?

Posted: 12 Dec 2017, 03:56
by noname
If the text is small you can use a "mailslot" :
https://autohotkey.com/board/topic/5547 ... mailslots/

There is a wrapper made by coco on the forum with links to microsoft documentation.