Sending Messages using Postmessage between two instances. Topic is solved
-
- Posts: 31
- Joined: 10 Feb 2017, 19:55
Sending Messages using Postmessage between two instances.
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
-
- Posts: 175
- Joined: 15 Dec 2016, 04:27
Re: Sending Messages using Postmessage between two instances.
Did you try making the script disable OnMessage for a few seconds right before it sends a message?
Re: Sending Messages using Postmessage between two instances.
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).
Re: Sending Messages using Postmessage between two instances.
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.
Re: Sending Messages using Postmessage between two instances. Topic is solved
I already gave code for this in your previous thread: https://autohotkey.com/boards/viewtopic ... 46#p134946
-
- Posts: 31
- Joined: 10 Feb 2017, 19:55
Re: Sending Messages using Postmessage between two instances.
Oh yeah, sorry didn't read that!
Who is online
Users browsing this forum: No registered users and 346 guests