View unanswered posts | View active topics It is currently September 23rd, 2014, 10:19 am



Reply to topic  [ 6 posts ] 
 Mouse "position" variables added 
Author Message

Developer

User avatar

Joined: April 19th, 2009, 11:02 pm
Posts: 10977
Location: Fairfax, VA
Post Mouse "position" variables added
January 21st, 2013, 1:00 pm
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:

Attachment:
Color Spectrum_0.1.rmskin [35.55 KiB]
Downloaded 220 times

Profile
User avatar

Joined: July 25th, 2011, 9:53 am
Posts: 262
Location: Manchester, UK
Post Re: Mouse "position" variables added
January 21st, 2013, 1:34 pm
This is awesome!
Great work guys :thumbup:

Profile WWW
User avatar

Joined: January 17th, 2013, 1:45 pm
Posts: 32
Location: Canada
Post Re: Mouse "position" variables added
January 21st, 2013, 4:01 pm
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.

Profile

Rainmeter Sage

User avatar

Joined: September 6th, 2011, 6:34 am
Posts: 928
Post Re: Mouse "position" variables added
January 23rd, 2013, 8:27 pm
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.

Profile

Developer

User avatar

Joined: April 19th, 2009, 11:02 pm
Posts: 10977
Location: Fairfax, VA
Post Re: Mouse "position" variables added
January 23rd, 2013, 8:30 pm
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.


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.

Profile

Rainmeter Sage

User avatar

Joined: September 6th, 2011, 6:34 am
Posts: 928
Post Re: Mouse "position" variables added
January 23rd, 2013, 10:30 pm
You're right. I forgot about $UserInput$. In this context the choice makes perfect sense.

Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.