It is currently April 27th, 2024, 9:34 am

New to scripting and failing.

Get help with creating, editing & fixing problems with skins
Gruth
Posts: 4
Joined: July 13th, 2012, 6:15 pm

New to scripting and failing.

Post by Gruth »

Hello, I'm new to scripting and rainmeter but I just use rainmeter to customize my icons and mess around with some gadgets.

Now I was editing a random skin and made this line but it doesn't work, I want it so you click this image/icon and then .exe gets executed so it opens up.

Meter=IMAGE
X=200
Y=180
w=60
h=60
ImageName=Games.png
LeftMouseDownAction=!execute ["C:\Program Files (x86)\Steam"]
AntiAlias=1

I have no idea why it doesn't work. Can anyone help me?
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: New to scripting and failing.

Post by Kaelri »

(Moved to Rainmeter Skins Help.)

Have you tried using the full path to Steam.exe?

Code: Select all

LeftMouseDownAction=["C:\Program Files (x86)\Steam\Steam.exe"]
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: New to scripting and failing.

Post by jsmorley »

LeftMouseDownAction=!execute ["C:\Program Files (x86)\Steam"]

So the program you want to run is C:\Program Files (x86)\Steam.exe ? I doubt that.
Gruth
Posts: 4
Joined: July 13th, 2012, 6:15 pm

Re: New to scripting and failing.

Post by Gruth »

Kaelri wrote:(Moved to Rainmeter Skins Help.)

Have you tried using the full path to Steam.exe?

Code: Select all

LeftMouseDownAction=["C:\Program Files (x86)\Steam\Steam.exe"]
Thanks for moving it to the right forum.

But how would that work?

LeftMouseDownAction=["Computer\Acer (C:)\Program Files (x86)\Steam\Steam.exe"]

Like that? I doubt if that works, I'll try.
Gruth
Posts: 4
Joined: July 13th, 2012, 6:15 pm

Re: New to scripting and failing.

Post by Gruth »

jsmorley wrote:LeftMouseDownAction=!execute ["C:\Program Files (x86)\Steam"]

So the program you want to run is C:\Program Files (x86)\Steam.exe ? I doubt that.
The program I want to run is Steam.exe so it opens up, how do I do that?
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: New to scripting and failing.

Post by Kaelri »

Gruth wrote:Thanks for moving it to the right forum.

But how would that work?

LeftMouseDownAction=["Computer\Acer (C:)\Program Files (x86)\Steam\Steam.exe"]

Like that? I doubt if that works, I'll try.
I don't know where the "Computer\Acer" part came from. Just use the path I showed you.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: New to scripting and failing.

Post by jsmorley »

All you really need to do is put the full path and filename you want to execute inside quotes in the bang.

You can do that by:

1) Go find the file you want to execute in Windows Explorer.

2) Hold down SHIFT and right click the .exe file you want to run.

3) Click on "Copy as path" from the context menu that pops up.

4) Go to your skin in your text editor

5) Type LeftMouseUpAction=[

6) Hold down CTRL and hit the "V" key.

7) Type ]

8) Now you will have LeftMouseUpAction=["C:\Program Files (x86)\Steam\steam.exe"]

9) Save the .ini file in your text editor.

10) Refresh Rainmeter from the context menu.
Gruth
Posts: 4
Joined: July 13th, 2012, 6:15 pm

Re: New to scripting and failing.

Post by Gruth »

Ahhh, Oh, I feel so stupid now I just forgot the Steam in there...

Thank you guys for helping, I'll read some guides now to advance more in this language.