It is currently February 22nd, 2024, 8:34 pm

Read a text file into a meter?

Get help with creating, editing & fixing problems with skins
ConcreteVitamin
Posts: 1
Joined: April 19th, 2012, 2:55 am

Re: Read a text file into a meter?

Post by ConcreteVitamin »

Hi,

This light-weight skin perfectly suits my needs... except that it cannot properly display Chinese characters stored inside a UTF-8-coded text file.

How can I get around with this? Please help.

Thanks!
User avatar
jsmorley
Developer
Posts: 22620
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Read a text file into a meter?

Post by jsmorley »

I have updated the .rmskin in the first of my posts in this thread:

http://rainmeter.net/forum/viewtopic.php?p=43296#p43296

The old version used some deprecated functions in Lua, that while they would work with everything formatted in ANSI, are not supported when Unicode is used in Lua.

Attention should be paid to how the various files are encoded. The .lua is Unicode / UTF-16 Little Endian, and the external text file it reads (Test.txt) is encoded as UTF-8.

Why this is so is explained here: http://rainmeter.net/forum/viewtopic.php?p=91224#p91224
User avatar
jsmorley
Developer
Posts: 22620
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Read a text file into a meter?

Post by jsmorley »

Made a couple of other minor tweaks. Get the latest 2.0 version at:

http://rainmeter.net/forum/viewtopic.php?p=43296#p43296
mnjk78lgm
Posts: 3
Joined: June 7th, 2017, 4:34 pm

Re: Read a text file into a meter?

Post by mnjk78lgm »

Hi, was wondering how to make the output text be able to go lower then halfway down the monitor if you only have 1 line of text, also to center text, because im making it read an updating file that tells me what song is playing on youtube and i want it centered in this music circle.
Last edited by mnjk78lgm on June 7th, 2017, 4:40 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22620
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Read a text file into a meter?

Post by jsmorley »

mnjk78lgm wrote:Hi, was wondering how to make the output text be able to go lower then halfway down the monitor if you only have 1 line of text
I don't understand the question.
mnjk78lgm
Posts: 3
Joined: June 7th, 2017, 4:34 pm

Re: Read a text file into a meter?

Post by mnjk78lgm »

jsmorley wrote:I don't understand the question.
when i drag the text on my monitor the text doesn't go below a specific point
User avatar
jsmorley
Developer
Posts: 22620
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Read a text file into a meter?

Post by jsmorley »

Sorry, still don't understand the question.
mnjk78lgm
Posts: 3
Joined: June 7th, 2017, 4:34 pm

Re: Read a text file into a meter?

Post by mnjk78lgm »

jsmorley wrote:Sorry, still don't understand the question.
never mind, i had to change H=500 to H=100 to be able to move the text lower.
sorry I couldn't really describe it better then how i did, but i did fix the problem so its fine
User avatar
jsmorley
Developer
Posts: 22620
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Read a text file into a meter?

Post by jsmorley »

Good deal...
CMDR_Evolution
Posts: 16
Joined: October 30th, 2020, 6:25 pm

Re: Read a text file into a meter?

Post by CMDR_Evolution »

Hello and thank you for the great tool.

I've used it to create myself a log file reader but when the lines exceed the room available in the window, they can no longer be seen.

Is there a way to make the screen show the bottom of the log, rather than the top please?

Many thanks