It is currently March 29th, 2024, 10:09 am

!RainmeterSetVariable

Release announcements and important news from the developers.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

!RainmeterSetVariable

Post by jsmorley »

Rainy (or anyone who uses it) can I get a brief sample of how to use the new bang !RainmeterSetVariable so I can add it to the manual? I want to be sure to get the syntax correct.
User avatar
JamesAC
Developer
Posts: 318
Joined: July 14th, 2009, 5:57 pm

Re: !RainmeterSetVariable

Post by JamesAC »

I had a brief attempt at using it,

The format seemed to be !RainmeterSetVariable VariableName NewValue

It seems you can also add ConfigName at the end to send the bang to a different skin

I also found the variable is not stored when the skin is refreshed which meant that my attempted application could not work
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: !RainmeterSetVariable

Post by dragonmage »

JamesAC, I'm not sure how you were trying to use it but maybe setting an OnRefreshAction= might help...
User avatar
JamesAC
Developer
Posts: 318
Joined: July 14th, 2009, 5:57 pm

Re: !RainmeterSetVariable

Post by JamesAC »

I was attempting to create a skin which searches google and returns the results on your desktop.

I was passing the input from JSMorley's RainInput into a !RainmeterSetVariable Bang and the trying to use that in a web parser to return the search results, by using the variable in the URL.
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?
User avatar
JWood
Posts: 2
Joined: September 8th, 2009, 2:44 pm

Re: !RainmeterSetVariable

Post by JWood »

Do we know the correct coding of SetVariable? I have tried it multiple ways and cannot seem to get it to work.
I've tried: !RainmeterSetVariable MeasureName 1
I've tried: !RainmeterSetVariable [MeasureName] 1
I've tried: !RainmeterSetVariable [MeasureName] [1]

All the were followed by a IfEqualAction statement

Thanks