We have added new mouse position "macro" variables that can be used in the context of a mouse click action to provide the current X and Y position of the mouse relative to the meter or skin with the mouse action.
See Mouse Variables for details.
Here is an excellent example skin from Kaelri that shows how these new variables can be used:
It is currently April 28th, 2024, 2:26 am
Mouse "position" variables added
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Mouse "position" variables added
You do not have the required permissions to view the files attached to this post.
-
- Posts: 291
- Joined: July 25th, 2011, 9:53 am
- Location: Lublin, Poland
Re: Mouse "position" variables added
This is awesome!
Great work guys
Great work guys
"Never argue with an idiot, he will drag you down to his level and beat you with experience."
my deviantART | Alternative Rainmeter tray icons
my deviantART | Alternative Rainmeter tray icons
-
- Posts: 32
- Joined: January 17th, 2013, 1:45 pm
- Location: Canada
Re: Mouse "position" variables added
This is great!
If I'm not mistaken, with a slight modification of the test skin, it could be used as a replacement for RainRGB at 1/10th the size? I re-sized the spectrum image and it still seems to find the colors correctly.
If I'm not mistaken, with a slight modification of the test skin, it could be used as a replacement for RainRGB at 1/10th the size? I re-sized the spectrum image and it still seems to find the colors correctly.
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: Mouse "position" variables added
Very nice! This was requested quite often and should open up lots of new possibilities for skins. But why the new syntax with dollar signs? Wouldn't it be simpler to just use the normal variable syntax with #? Adding new syntax just for the sake of one small feature seems a bit too much.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Mouse "position" variables added
The behavior of this functionality is so different from any kind of normal variable that we didn't want to confuse things. If you look at how $UserInput$ is used in InputText, it is much closer to that, more like a "macro" than a "variable", and thus using a consistent syntax makes some sense.MerlinTheRed wrote:Very nice! This was requested quite often and should open up lots of new possibilities for skins. But why the new syntax with dollar signs? Wouldn't it be simpler to just use the normal variable syntax with #? Adding new syntax just for the sake of one small feature seems a bit too much.
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: Mouse "position" variables added
You're right. I forgot about $UserInput$. In this context the choice makes perfect sense.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!