It is currently April 30th, 2024, 6:55 pm

Please tell me an example of luascript

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16190
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Please tell me an example of luascript

Post by balala »

Kotofanchik wrote: April 3rd, 2024, 8:14 pm For the future, is it possible to read text in a file located not in the Rainmeter folders? In the browser cache for example?
Yes, definitely. You just have to enter the appropriate path of the file you want to write, as the first parameter of the [&MeasureLuaScript:EmptyFile('AddThePathHere')] or the [&MeasureLuaScript:WriteFile('AddThePathHere', 'Welcome to Lua')] function in the code of your skin. That file can be located anywhere on your computer.
Kotofanchik
Posts: 95
Joined: March 15th, 2024, 7:30 pm

Re: Please tell me an example of luascript

Post by Kotofanchik »

Thank you.