It is currently April 27th, 2024, 6:32 am

Is there any way to run a Macro in RainMeter?

General topics related to Rainmeter.
User avatar
RainDojo
Posts: 26
Joined: March 11th, 2024, 10:30 pm

Is there any way to run a Macro in RainMeter?

Post by RainDojo »

Bit of a misleading title there but I didn't know how to word it.
I made a .bat file which opens a couple of Explorer windows. RainMeter can open that .bat file and let it do it's job. Cool. The trouble is, I want to not only open a folder, I want to open an app (CCleaner) and push 'Run'. The pushing the 'Run' button doesn't seem to be possible with a macro so I'm wondering if there's another way around it? I don't want to use Windows schedule or have something running in the background if I can help it.
Any ideas please?
User avatar
SilverAzide
Rainmeter Sage
Posts: 2611
Joined: March 23rd, 2015, 5:26 pm

Re: Is there any way to run a Macro in RainMeter?

Post by SilverAzide »

RainDojo wrote: March 27th, 2024, 9:36 pm Bit of a misleading title there but I didn't know how to word it.
I made a .bat file which opens a couple of Explorer windows. RainMeter can open that .bat file and let it do it's job. Cool. The trouble is, I want to not only open a folder, I want to open an app (CCleaner) and push 'Run'. The pushing the 'Run' button doesn't seem to be possible with a macro so I'm wondering if there's another way around it? I don't want to use Windows schedule or have something running in the background if I can help it.
Any ideas please?
Let me Google that for you. Command line switches documented here. No need to over-complicate this with "macros".
Gadgets Wiki GitHub More Gadgets...
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Is there any way to run a Macro in RainMeter?

Post by Yincognito »

SilverAzide is right, if the program already has command line options doing what you need, better use them. For a more general answer, or if the program doesn't provide such command line abilities, compiling a script in AutoIt or AutoHotKey and running it from Rainmeter the usual way (through a bang or a RunCommand measure) would probably do the "button push" job.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
RainDojo
Posts: 26
Joined: March 11th, 2024, 10:30 pm

Re: Is there any way to run a Macro in RainMeter?

Post by RainDojo »

Thanks, I tried the built-in for CCleaner but it doesn't work.
I made a few Macros which launch programs, empty the trash, etc. I love them.