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?
It is currently April 28th, 2024, 2:37 am
Is there any way to run a Macro in RainMeter?
-
- Posts: 26
- Joined: March 11th, 2024, 10:30 pm
-
- Rainmeter Sage
- Posts: 2613
- Joined: March 23rd, 2015, 5:26 pm
Re: Is there any way to run a Macro in RainMeter?
Let me Google that for you. Command line switches documented here. No need to over-complicate this with "macros".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?
-
- Rainmeter Sage
- Posts: 7178
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Is there any way to run a Macro in RainMeter?
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.
-
- Posts: 26
- Joined: March 11th, 2024, 10:30 pm
Re: Is there any way to run a Macro in RainMeter?
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.
I made a few Macros which launch programs, empty the trash, etc. I love them.