# 求助想写一个股票的小工具,输入框输入数据赋值没实现 - Rainmeter技术教程 - 雨滴社区 - Powered by Discuz!
 找回密码
 点击注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1364|回复: 1

[技术交流] 求助想写一个股票的小工具,输入框输入数据赋值没实现

[复制链接]

签到天数: 4 天

[LV.2]偶尔看看I

 楼主| 发表于 2021-8-3 14:25:27 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 blackjack550 于 2021-8-3 14:31 编辑

大家好,先感谢rainmeter这个工具感觉很好用,想学习一下做点小工具便于使用
目前没找到比较好用的股票小工具,自己修改别人的能实现,但是不便于其他人使用,所以想通过输入框搜索股票代码然后添加,但是按文档测试了几种写法不管用,所以来发帖求助
  1. [measureInput]
  2. ; The InputText.dll plugin has special powers: it allows user input.
  3. ; However, it's not the easiest way to start learning Rainmeter. Get a
  4. ; hold of the basics, and then check out the manual entry for InputText.
  5. Measure=Plugin
  6. Plugin=InputText.dll
  7. SolidColor=20,20,20,255
  8. StringAlign=Left
  9. StringCase=None
  10. StringStyle=Bold
  11. StringEffect=Shadow
  12. FontEffectColor=0,0,0,20
  13. FontColor=#colorText#
  14. FontFace=#fontName#
  15. FontSize=#textSize#
  16. X=10
  17. Y=38
  18. W=188
  19. H=17
  20. FocusDismiss=1
  21. DefaultValue=""
  22. ; Command1=["http://hq.sinajs.cn/list=s_sz$UserInput[        DISCUZ_CODE_0        ]quot;]
  23. Command1=!SetVariable SecondVar "$UserInput[        DISCUZ_CODE_0        ]quot;
  24. UpdateDivider=86400
复制代码
  1. [MeterSecondVar]
  2. Meter=String
  3. X=5
  4. Y=55
  5. FontSize=10
  6. FontColor=255,255,255,255
  7. AntiAlias=1
  8. Text=#SecondVar#
复制代码


根据google那个代码修改一下,我看文档以为这个是赋值给SecondVar变量,可是测试不能成功,输入以后SecondVar并不能替换成输入字符,请问怎么处理?
回复

使用道具 举报

签到天数: 4 天

[LV.2]偶尔看看I

 楼主| 发表于 2021-8-3 15:07:55 | 显示全部楼层
  1. [MeterSetVariable]
  2. Meter=String
  3. X=5
  4. Y=60
  5. FontSize=10
  6. FontColor=255,255,255,255
  7. AntiAlias=1
  8. DynamicVariables=1
  9. Text=股票代码:#SecondVar#
复制代码

解决了需要编程动态变量
回复

使用道具 举报

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

本版积分规则

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