It is currently March 28th, 2024, 9:00 pm

Execute File in specific time of the day

Get help with creating, editing & fixing problems with skins
the_metal_lord
Posts: 27
Joined: April 3rd, 2018, 12:50 pm

Execute File in specific time of the day

Post by the_metal_lord »

Hi, trying to make a rainmeter skin, where the skin will open a playlist at 7:30am everyday.

Code: Select all

[Rainmeter]

[Metadata]
Name=Better Day
Author=Mohaiminul
Information=Starts day for better
Version=1.0

[Variables]

[MeterString]
Meter=
StringAlign=Left
X=30
LeftMouseUpAction=#@#Playlist.mpcpl
How to add the time?
Last edited by the_metal_lord on August 14th, 2018, 10:18 am, edited 1 time in total.
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: Execute File in specific time of the day

Post by FreeRaider »

Try this code:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Metadata]
Name=Testing
Author=FreeRaider
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]

[MeasureTime]
Measure=Time
Format=%#I:%M %p
IfMatch=(?si)7:30 am
IfMatchAction=["C:\FOLDER WHERE\Your\Playlist\is.EXT"]

[MeterDummy]
Meter=STRING
Have a look at these pages
https://docs.rainmeter.net/manual/measures/general-options/ifmatchactions/
https://docs.rainmeter.net/manual/measures/time/

Post Scriptum: it will open the default player for that extension type. For me, my .pls files are open by VLC player.
the_metal_lord
Posts: 27
Joined: April 3rd, 2018, 12:50 pm

Re: Execute File in specific time of the day

Post by the_metal_lord »

FreeRaider wrote:Try this code:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Metadata]
Name=Testing
Author=FreeRaider
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]

[MeasureTime]
Measure=Time
Format=%#I:%M %p
IfMatch=(?si)7:30 am
IfMatchAction=["C:\FOLDER WHERE\Your\Playlist\is.EXT"]

[MeterDummy]
Meter=STRING
Have a look at these pages
https://docs.rainmeter.net/manual/measures/general-options/ifmatchactions/
https://docs.rainmeter.net/manual/measures/time/

Post Scriptum: it will open the default player for that extension type. For me, my .pls files are open by VLC player.
- Thanks! This worked great!
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

Re: Execute File in specific time of the day

Post by FreeRaider »

the_metal_lord wrote:- Thanks! This worked great!
You are welcome!