# 如何让输入框联动工具刷新 - Rainmeter皮肤区 - 雨滴社区 - Powered by Discuz!
 找回密码
 点击注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 599|回复: 1

[其它] 如何让输入框联动工具刷新

[复制链接]

签到天数: 4 天

[LV.2]偶尔看看I

 楼主| 发表于 2021-8-3 16:02:28 | 显示全部楼层 |阅读模式

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

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

x
下载.png
根据用户emian的程序修改了一些样式想通过输入股票代码直接关注股票,目前输入代码可以刷新股票代码的文字,但是如何能触发InfoStock让他再次获取API呢?请高手指点
  1. [Variables]
  2. fontName=Tahoma
  3. textSize=9
  4. SecondVar="399006"
  5. ; fontName=Trebuchet MS
  6. ; textSize=8
  7. colorBar=235,170,0,255
  8. colorText=255,255,255,205
  9. colordown=0,255,0,205
  10. colorup=255,0,0,205
  11. update.Spd=15
  12. Quote=http://hq.sinajs.cn/list=s_sz#SecondVar#

  13. ;输入框
  14. [measureInput]
  15. ; The InputText.dll plugin has special powers: it allows user input.
  16. ; However, it's not the easiest way to start learning Rainmeter. Get a
  17. ; hold of the basics, and then check out the manual entry for InputText.
  18. Measure=Plugin
  19. Plugin=InputText.dll
  20. SolidColor=0,64,128,180
  21. StringAlign=Left
  22. StringCase=None
  23. StringStyle=Bold
  24. StringEffect=Shadow
  25. FontEffectColor=0,0,0,20
  26. FontColor=#colorText#
  27. FontFace=#fontName#
  28. FontSize=#textSize#
  29. X=10
  30. Y=38
  31. W=170
  32. H=17
  33. FocusDismiss=1
  34. DefaultValue=""
  35. ; Command1=["http://hq.sinajs.cn/list=s_sz$UserInput$"]
  36. Command1=[!SetVariable SecondVar "$UserInput$"]
  37. ; Command2=!InfoStock1
  38. UpdateDivider=86400

  39. [InfoStock1]
  40. Measure=Plugin
  41. Plugin=Plugins\WebParser.dll
  42. URL=#Quote#
  43. RegExp="(?siU)var hq_str_(.*)="(.*),(.*),(.*),(.*),(.*),(.*)";"
  44. CodePage=936
  45. StringIndex=7
  46. UpdateRate=#update.Spd#
复制代码

回复

使用道具 举报

签到天数: 74 天

[LV.6]常住居民II

发表于 2021-10-28 13:57:20 | 显示全部楼层
本帖最后由 goeway 于 2021-10-28 14:14 编辑

方法一:

将行37写成
  1. Command1=[!SetVariable SecondVar "$UserInput$"][!Delay 233][!CommandMeasure InfoStock1 "Update"]
复制代码

在48行下面加上
  1. DynamicVariables=1
复制代码

这样子不知行不行,或许还要在振幅涨跌幅点位等[meter]下加上DynamicVariables=1

方法二:

直接将行37写成

  1. Command1=[!WriteKeyValue Variables SecondVar "$UserInput$"][!Refresh]
复制代码
你的皮肤相当简单,用方法二简单搞搞就得了
回复

使用道具 举报

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

本版积分规则

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