It is currently April 24th, 2024, 10:46 pm
Make an exe launch on loading of a rainmeter skin?
-
- Posts: 2
- Joined: June 11th, 2022, 6:29 pm
Make an exe launch on loading of a rainmeter skin?
I know how to make an exe launch on clicking a text, but is there anyway to make a rainmeter skin launch up exes automatically when you load it up?
-
- Rainmeter Sage
- Posts: 16168
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Make an exe launch on loading of a rainmeter skin?
There definitely is. Just have to use a proper OnRefreshAction option in the [Rainmeter] section. For instance the simplest way is this: OnRefreshAction=["d:\Path-Of-Your-Executable.exe"]. Obviously you have to use the appropriate path of the executable.
-
- Posts: 2
- Joined: June 11th, 2022, 6:29 pm
Re: Make an exe launch on loading of a rainmeter skin?
thank you, thats perfect. however, is there a way i can make it check if the program is open, and then if it isnt, it opens it?
-
- Rainmeter Sage
- Posts: 16168
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Make an exe launch on loading of a rainmeter skin?
Yep, there is. Remove the previously added OnRefreshAction option from the [Rainmeter] section and add the following measure to your code:
Code: Select all
[MeasureProcess]
Measure=Process
ProcessName=Notepad.exe
IfCondition=(#CURRENTSECTION#<0)
IfTrueAction=["Notepad.exe"]
UpdateDivider=-1
Obviously you have to replace the Notepad.exe into the ProcessName option with the appropriate name, but this is the idea.