It is currently April 23rd, 2024, 8:48 pm

Receiving Window Messages

Get help with creating, editing & fixing problems with skins
User avatar
Jax
Posts: 104
Joined: June 7th, 2021, 11:46 am

Receiving Window Messages

Post by Jax »

Hello there. From what I understand, The WindowMessage plugin only sends window messages, and listens to the reply. Is there a way to make the skin window receive specific window messages with an id? Or is there a plugin for this task?
User avatar
Jax
Posts: 104
Joined: June 7th, 2021, 11:46 am

Re: Receiving Window Messages

Post by Jax »

Does anyone have any ideas about this? :(
User avatar
Brian
Developer
Posts: 2681
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Receiving Window Messages

Post by Brian »

Jax wrote: June 13th, 2022, 10:32 am Is there a way to make the skin window receive specific window messages with an id? Or is there a plugin for this task?
Not with this plugin, but then again, a Windows message might not be the best way to send information to a Rainmeter skin.

It might help if you could describe what you are trying to do, because it sounds as if you are trying to send a specific skin some information from another application (or script). If that is the case, it would probably be best to just send a bang to the main Rainmeter application (utilizing the config parameter of the bang to make sure it gets to the right skin).

https://docs.rainmeter.net/manual/bangs/
Example: "C:\Program Files\Rainmeter\Rainmeter.exe" !SetOption SomeStringMeter Text "SomeValue" "MySuite\MySkin"


Another option is using the Rainmeter API from an external application, but this is mainly for getting Rainmeter path information, or a skins window handle. We have some information here to get you started, but obviously implementing this from whatever external application you are using is going be difficult to provide support for, at least on our end.
https://docs.rainmeter.net/developers/#SendMessage

Some of the query id's are located here: https://github.com/rainmeter/rainmeter/blob/master/Library/RainmeterQuery.h

-Brian
User avatar
Jax
Posts: 104
Joined: June 7th, 2021, 11:46 am

Re: Receiving Window Messages

Post by Jax »

Brian wrote: June 18th, 2022, 6:01 am It might help if you could describe what you are trying to do, because it sounds as if you are trying to send a specific skin some information from another application (or script). If that is the case, it would probably be best to just send a bang to the main Rainmeter application (utilizing the config parameter of the bang to make sure it gets to the right skin).
I am trying to send a window message to rainmeter from an ahk script for this project. Currently, it works by the method you mentioned (sending a bang to the application), but it causes a loading icon to appear next to the most cursor (since it is starting a new instance of the program). I am able to send window messages to the skin window with ahk with ease, but there are no ways to interpret them in Rainmeter.