It is currently April 16th, 2024, 11:44 am

How get meter options, handle

Share and get help with Plugins and Addons
Doren
Posts: 2
Joined: April 17th, 2020, 8:19 am

How get meter options, handle

Post by Doren »

How to get option value or handle (for example m_ToolTipHandle) from meter using c++.
Can someone help me.
thank you
User avatar
balala
Rainmeter Sage
Posts: 16142
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How get meter options, handle

Post by balala »

Doren wrote: April 17th, 2020, 8:29 am How to get option value or handle (for example m_ToolTipHandle) from meter using c++.
Although once I've wrote a Rainmeter plugin, I'm not programming regularly, so probably I not am the best to give advices, but here is a good description on how to create Rainmeter plugins. There is a sample C++ code as well, which also can be used to figure out how to do different things. If no one has a better advice, maybe it worth take a look.
Doren
Posts: 2
Joined: April 17th, 2020, 8:19 am

Re: How get meter options, handle

Post by Doren »

thank you
I figured how to get meter values. I get them from config.

But cannot get handle (hwnd m_ToolTipHandle) to tooltips.
User avatar
balala
Rainmeter Sage
Posts: 16142
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How get meter options, handle

Post by balala »

Doren wrote: April 18th, 2020, 6:34 am But cannot get handle (hwnd m_ToolTipHandle) to tooltips.
:confused: Sorry, someone else will have to help you here. :confused:
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: How get meter options, handle

Post by oZone »

Hi I don't think Rainmeter has API to get that handle.
But you can use winapi to get it.

https://github.com/ozone10/Rainmeter-DarkContextMenu/blob/master/Plugin/PluginDarkContextMenu.cpp

function "GetTooltips" should give you idea how to get it.
User avatar
Yincognito
Rainmeter Sage
Posts: 7118
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How get meter options, handle

Post by Yincognito »

Also, maybe looking into Rainmeter's source code a bit will help. Try here, and search for (CTRL+F) m_ToolTipHandle. Not sure how much this will help, but, well, I've got nothing else, so...
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth