It is currently May 4th, 2024, 6:01 pm
Sliders...
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Sliders...
I have not been following this closely, but there is a simple rule:
[Variables]
App1=C:\Program Files\MyProgram\MyProgram.exe
[Meter]
LeftMouseUpAction=["#App1#"]
It should always be that way, always, without exception, don't worry about spaces or no spaces in the value, just assume there always are.
- Never put quotes around option values, that serves no purpose.
- Always put quotes around string value parameters in [!Bangs] or other [actions].
[Variables]
App1=C:\Program Files\MyProgram\MyProgram.exe
[Meter]
LeftMouseUpAction=["#App1#"]
It should always be that way, always, without exception, don't worry about spaces or no spaces in the value, just assume there always are.
- Never put quotes around option values, that serves no purpose.
- Always put quotes around string value parameters in [!Bangs] or other [actions].
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
Re: Sliders...
Yep, learnt the lesson!jsmorley wrote: ↑August 10th, 2020, 1:40 pm I have not been following this closely, but there is a simple rule:
[Variables]
App1=C:\Program Files\MyProgram\MyProgram.exe
[Meter]
LeftMouseUpAction=["#App1#"]
It should always be that way, always, without exception, don't worry about spaces or no spaces in the value, just assume there always are.
- Never put quotes around option values, that serves no purpose.
- Always put quotes around string value parameters in !Bangs or other actions.
-
- Rainmeter Sage
- Posts: 16198
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Sliders...
I came just now so I'm not sure, but I suppose the issue is solved. Am I right? Beacuse I see some weird things in the code.
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
Re: Sliders...
Hi balala,
yes, the skin is working now, but if you want to have a look and maybe suggest any kind of optimization that would be great.
It's always important for me to hear your point of view.
few post before there's the rmskin file that you may download.
Thank you very much!
-
- Rainmeter Sage
- Posts: 16198
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Sliders...
-
- Rainmeter Sage
- Posts: 7199
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Sliders...
What about programs that have parameters? As far as I know, Rainmeter (or explorer.exe, don't know for sure) requires that it should be written as ["Program" "Parameter"] in a direct execution bang. If one uses the format you recommeded, the bang becomes ["Program Parameter"] after the variable is replaced with its actual value, and that won't run properly. On the other hand, moving the quotes in the variable itself instead of in the bang allows them to be placed appropriately, depending on context.jsmorley wrote: ↑August 10th, 2020, 1:40 pm I have not been following this closely, but there is a simple rule:
[Variables]
App1=C:\Program Files\MyProgram\MyProgram.exe
[Meter]
LeftMouseUpAction=["#App1#"]
It should always be that way, always, without exception, don't worry about spaces or no spaces in the value, just assume there always are.
For example, this is a code that will run Civ 4 without issues (didn't know what other example to use, so bear with me):
Code: Select all
[Variables]
Command=""D:\Software\Games\Civilization 4\Beyond the Sword\Civ4BeyondSword.exe" mod="K-Mod""
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=47,47,47,255
---Meters---
[MeterTest]
Meter=STRING
X=0
Y=0
FontFace=Consolas
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
FontSize=16
AntiAlias=1
Text="Click To Run Program"
LeftMouseUpAction=[#Command#]
DynamicVariables=1
Code: Select all
[Variables]
Command=D:\Software\Games\Civilization 4\Beyond the Sword\Civ4BeyondSword.exe mod=K-Mod
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=47,47,47,255
---Meters---
[MeterTest]
Meter=STRING
X=0
Y=0
FontFace=Consolas
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
FontSize=16
AntiAlias=1
Text="Click To Run Program"
LeftMouseUpAction=["#Command#"]
DynamicVariables=1
-
- Rainmeter Sage
- Posts: 7199
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
-
- Posts: 172
- Joined: July 8th, 2018, 8:05 pm
Re: Sliders...
Yes that 's the skin.balala wrote: ↑August 10th, 2020, 4:37 pm This one?
https://forum.rainmeter.net/viewtopic.php?p=181623#p181611
Why mine?
Well, I like your approach on how to solve problems, and your knowledge about Rainmeter it seems, at least to me as a beginner as myself, bottomless.
There are,obviously, many other great people here (i.e. jsmorley, eclectic-tech, Yincognito just to name a few and may many others...) that I love to follow that have a very deep knowledge of this software and coding in general but, more often then not, you go for the extra miles to get at the very bottom of the issues.
And with that I don't mean that the others don't do that, it just a feeling, like you like better a writer respect others...
-
- Rainmeter Sage
- Posts: 7199
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Sliders...
You nailed it right there. It's my feeling as well - and might be hard to believe now, but balala helped me as well tremendously improving my own Rainmeter knowledge over time (along with the other "greats" here like jsmorley, eclectic-tech, SilverAzide, etc). Me, I'm not that great, I'm just a normal guy who likes challenges and perfection.