# Help!! - Rainmeter插件与测试 - 雨滴社区 - Powered by Discuz!
 找回密码
 点击注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 13|回复: 1

[插件与脚本] Help!!

[复制链接]

签到天数: 1 天

[LV.1]初来乍到

 楼主| 发表于 昨天 12:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?点击注册

x
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
  1. [Rainmeter]
  2. Update=5000

  3. [MeasureFile]
  4. Measure=Plugin
  5. Plugin=ReadFile
  6. FileName=C:\Users\9\Documents\Rainmeter\Skins\WebScraper_crypto\scrape_results.txt

  7. [MeterFile]
  8. Meter=String
  9. Text=%MeasureFile%
  10. FontFace=Segoe UI
  11. FontSize=12
  12. SolidColor=0,0,0,0
  13. AntiAlias=1
  14. X=10
  15. Y=10
复制代码
Anybody 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!


回复

使用道具 举报

签到天数: 1268 天

[LV.10]以坛为家III

发表于 昨天 23:50 | 显示全部楼层
[MeterFile]节点下这样写才可以,具体根据代码显示的情况测试。
增加这一项的关联MeasureName=MeasureFile
Text=%MeasureFile%更改为:Text="%1"
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点击注册

本版积分规则

快速回复 返回顶部 返回列表