audismo 发表于 2024-11-26 12:58:12

Help!!

Ni hao!

First of all, thank you to the poster. This forum is the only place on the internet that has archived the ReadFile RainMeter plugin.

I have developed a Rainmeter plugin that uses Python to authenticate a web session and then scrape some elements from the site.

The script then saves the scraped content into a text file -> scrape_results.txt

This is where the ReadFile plugin comes in. The plugin should read the contents of this text file (which contains a short text string) and display it on my desktop with appropriate styling.

Unfortunately all the widget displays is:%MeasureFile%

Here is my WebScraper.ini

Update=5000


Measure=Plugin
Plugin=ReadFile
FileName=C:\Users\9\Documents\Rainmeter\Skins\WebScraper_crypto\scrape_results.txt


Meter=String
Text=%MeasureFile%
FontFace=Segoe UI
FontSize=12
SolidColor=0,0,0,0
AntiAlias=1
X=10
Y=10Anybody know what I´m doing wrong??

I also tried putting scrape_results.txt inside the ReadFile.rmskin plugin and edited the ini file to try to read it but it also does not work... not sure what is wrong. Any help would be greatly appreciated, thanks!


雨滴88 发表于 2024-11-26 23:50:02

节点下这样写才可以,具体根据代码显示的情况测试。
增加这一项的关联MeasureName=MeasureFile
Text=%MeasureFile%更改为:Text="%1"

无界 发表于 2024-11-27 06:56:13


Measure=Plugin
Plugin=QuotePlugin
PathName=#@#Quotes.txt
FileFilter=*.txt
UpdateDivider=40


Meter=String
MeasureName=MeasureFile
FontFace=Segoe UI
FontSize=12
SolidColor=0,0,0,0
AntiAlias=1
X=10
Y=10

页: [1]
查看完整版本: Help!!