Sending Messages using Postmessage between two instances. Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
A random guy
Posts: 31
Joined: 10 Feb 2017, 19:55

Sending Messages using Postmessage between two instances.

17 Mar 2017, 19:12

So if i have two instances of the same script then how can i (using Postmessage and onmessage) send a message from the second instance to the first instance and not to itself
ManualColdLock
Posts: 175
Joined: 15 Dec 2016, 04:27

Re: Sending Messages using Postmessage between two instances.

17 Mar 2017, 23:47

Did you try making the script disable OnMessage for a few seconds right before it sends a message?
Noesis
Posts: 301
Joined: 26 Apr 2014, 07:57

Re: Sending Messages using Postmessage between two instances.

17 Mar 2017, 23:54

Store the scripts hwnd and when getting the window to post to ensure the hwnd of the found window is not the hwnd of the current window before sending (you'll also need the other hwnd, since all other things will be identical you have to use other hwnd as part of the wintitle to send to in the postmessage).
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: Sending Messages using Postmessage between two instances.

18 Mar 2017, 02:07

Use WinGet List to find all instances of your script, or give the two instances different window titles and use the correct one when sending the message.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, rc76 and 207 guests