Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 639

Drag Meter to switch variables?

$
0
0
Hey, so I'm a little out of ideas here. I have a grid of meters. Each meter is a square which contains an image and an action. So what I want to do is to drag a meter and drop it over another meter to "switch" their variables.

For example let's say each meter is called square1, square2, etc. Each meter is bound to 3 variables of the same name, square1Name, square1Image and square1Action.

I'd use mouse plugin for the dragging, no problem there, however... need ideas on the variables switching part.

So, dropping square2 on square1 would set the variables from square2 to square1, and the variables from the square1 to square2.

Haven't tried yet as I will have no time today. However when I think about it I see a possible problem.

For example, I'm thinking of using something like:

[!SetVariable Square2Name [#Square1Name]][!SetVariable Square1Name [#Square2Name]]

However, what I think will happen is that Square2Name will = Square1Name, and since Square2Name now equals Square1Name, Square1Name then will equal Square1Name as well, so both variables will grab the same value, right? Did I explain myself correctly?

Statistics: Posted by RicardoTM — Yesterday, 12:36 pm — Replies 7 — Views 95



Viewing all articles
Browse latest Browse all 639

Trending Articles