Example:
Code: Select all
[MousePositionX]
Measure=MousePosition
Parameter=X
[MousePositionY]
Measure=MousePosition
Parameter=Y
![Smiler :)](./images/smilies/ab.gif)
Code: Select all
[MousePositionX]
Measure=MousePosition
Parameter=X
[MousePositionY]
Measure=MousePosition
Parameter=Y
Hmm, thats true. How about turning it into a bang that updates the measure instead? As "!RainmeterGetMousePosition"? This could be used to place a menu where the mouse is clicked.jsmorley wrote:I'm concerned that you would need Update=10 or something to have any hope of a mouse position measure be of any value. That would be a CPU killer. Maybe spx can weigh in.
Code: Select all
[BarSettingsMenuPositionX]
Measure=MousePosition
Parameter=X
[BarSettingsMenuPositionY]
Measure=MousePosition
Parameter=Y
[BarMeter]
Meter=Image
SolidColor=255,255,255
RightMouseDownAction=!Execute ["Something"]
LeftMouseDownAction=!execute [!RainmeterGetMousePosition BarSettingsMenuPositionX][!RainmeterGetMousePosition BarSettingsMenuPositionY][!RainmeterShowMeter BarSettingsMenu]
[BarSettingsMenu]
Meter=String
MeterStyle=SomeStringStyle
X=[BarSettingsMenuPositionX]
Y=[BarSettingsMenuPositionY]
Hidden=1
DynamicVariables=1
Text=Settings
RightMouseDownAction=!Execute ["SomeSettings"]
LeftMouseDownAction=!RainmeterHideMeter BarSettingsMenu