神奇的日子 发表于 2022-7-11 11:22:42

雨滴如何用代码实现相对位置

这是官方技术文档内的代码

Meter=String
X=0r
Y=2R
FontFace=Trebuchet MS
FontSize=14
FontColor=255,255,255,255
StringStyle=Bold
SolidColor=0,0,0,1
AntiAlias=1
Text=Paint
LeftMouseUpAction=["MSPaint.exe"]这是我复写出来的代码

Meter=String
X=0r
Y=2R
FontFace=Trebuchet MS
FontFace=14
FontColor=255,255,255,255
StringStyle=Bold
Solidcolor=0,0,0,1
AntiAlias=1
Text=PAINT
LeftMouseUpAction=["MSPaint.exe"]应该是完全相同有没有、
并没有达到相对位置的目的。
还有,发帖子为什么上传图片失败,提示内部服务器错误。
谢谢大佬们。

神奇的日子 发表于 2022-7-11 11:23:49


update=1000


Meter=String
X=5
Y=5
FontFace=Trebuchet MS
FontSize=14
FontColor=255,255,255,255
StringStyle=Bold
AntiAlias=1
Text=Notepad
Solidcolor=0,0,0,1
LeftMouseUpAction=["C:\Windows\System32\Notepad.exe""]

这是开头部分

朱门 发表于 2022-7-11 12:17:49

光看相对位置这块写法是没啥问题的,另外我试了一下,这个大写“R”和小写“r”的效果不太一样

神奇的日子 发表于 2022-7-11 15:21:02

朱门 发表于 2022-7-11 12:17
光看相对位置这块写法是没啥问题的,另外我试了一下,这个大写“R”和� ...

对,我后来确认了r与R之间是有差别的。
他们的相对位置参考的边不相同
然后我重新保存了一编,提出的这个问题已经没有了。
现在可以正常使用
页: [1]
查看完整版本: 雨滴如何用代码实现相对位置