[Rainmeter]
Update=100
MouseOverAction= [!SetOption MeterText X "150" ][!Redraw]
MouseLeaveAction= [!SetOption MeterText X "0"][!Redraw]
[MeterText]
Meter=String
Text=HELLO!
Also, if your trying to move the skin itself, you cant do it that way.
You can only move the meters around like that. Also, for the R to work, it needs a reference before that meter but i dont know if you can add R with SetOption. Best would be to post a bit more of your code and explain what it is the move would achieve. Like, do you want to align to something (screen dimensions) or align to a different skin or meter or do you want to center it? What is its purpose. ^^
Last edited by theimmersion on September 22nd, 2017, 3:28 pm, edited 1 time in total.
theimmersion wrote:SetOptions doesnt work like that. Check the documentations again.
For instance:
[Rainmeter]
Update=100
MouseOverAction= [!SetOption MeterText X "150" ][!Redraw]
MouseLeaveAction= [!SetOption MeterText X "0"][!Redraw]
[MeterText]
Meter=String
Text=HELLO!
Also, if your trying to move the skin itself, you cant do it that way.
You can only move the meters around like that. Also, for the R to work, it needs a reference before that meter but i dont know if you can add R with SetOption. Best would be to post a bit more of your code and explain what it is the move would achieve. Like, do you want to align to something (screen dimensions) or align to a different skin or meter or do you want to center it? What is its purpose. ^^
Ah, I see. My original intention was to move the skin itself on hover, but I guess not. Thanks for the reply.
In addition to theimmersion's reply, you have to know that probably you're making a confusion: moving a skin or moving a meter of it are not the same things. You can't position a skin (which you did) with the X and Y options, added to the [Rainmeter] section. You simply can't use them there, not being allowed. But even if they would be, you can't change dynamically any options of the [Rainmeter] section. See the last section ("What !SetOption can change and what it can't") of this: https://docs.rainmeter.net/tips/setoption-guide/
However you can move the skin itself, using the !Move bang. So, replace your [Rainmeter] section with something like the following one:
where obviously New-Horizontal-Position, New-Vertical-Position, Original-Horizontal-Position and Original-Vertical-Position are the exact horizontal and vertical positions of the skin, given as numbers. Relative positioning of a skin is not allowed.
Also note that the posted !SetOption bangs are not correct. A such bang requires three (or sometimes even four) parameters: the name of the appropriate section, the name of the options of previously given section and its new value. If it's needed, you can also add a fourth parameter, the config where you want to apply the new option, if this is another one. But two parameters are not enough (X and "150R" in your example).