Hello everyone and I wish you a Happy Easter.
I want to read a registry value with a lua script to can use this value. How can it be made? I googled the web but found nothing useful.
Thanks
It is currently April 27th, 2024, 12:28 am
Reading a registry value
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Reading a registry value
You really can't. Lua is a "platform agnostic" language and knows nothing at all about the Windows Registry.balala wrote:Hello everyone and I wish you a Happy Easter.
I want to read a registry value with a lua script to can use this value. How can it be made? I googled the web but found nothing useful.
Thanks
You can however have the Rainmeter skin use the Registry measure to read the value, and then obtain the current value of that measure in the Update() function of the Lua script.
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Reading a registry value
Thank you, I found this solution, but thought there is an easier one.jsmorley wrote: You really can't. Lua is a "platform agnostic" language and knows nothing at all about the Windows Registry.
You can however have the Rainmeter skin use the Registry measure to read the value, and then obtain the current value of that measure in the Update() function of the Lua script.