I'm sure this is on this site somewhere I've searched probably not using the right keywords. This is a big form so patients appreciated and anyone willing to answer this for the 100+ time will make my day
How to open app1 leftupaction and close app1 leftupaction
don't know how to post the code all pretty like a lot of you do so here it is as ugly as possible.
[App]
Meter=String
X=130
Y=#y#
StringStyle=BOLD
AntiAlias=1
Percentual=1
FontSize=#Size#
FontColor=#color#
FontFace=#FontName#
PreFix=" App"
[AppIF]
IfAboveValue=stringindex=1
LeftMouseUpAction=!Execute [#AppS#]
[AppS]
Meter=String
MeasureName=App
[!SetOption App FontColor=#colorS#]["#SKINSPATH#\nocs\app.exe"]
StringIndex=1
[Appk]
Meter=String
MeasureName=App
[!SetOption App FontColor=#color#]["#SKINSPATH#\nocs\Appk.exe"]
StringIndex=2
It is currently April 27th, 2024, 4:51 pm
open app close app
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: open app close app
There is basically nothing about this that is valid Rainmeter functionality. The long and the short of it is that while Rainmeter can start an application with
LeftMouseUpAction=!Execute ["C:\Program Files\SomeApp\SomeApp.exe"]
It has no capability to close an application.
LeftMouseUpAction=!Execute ["C:\Program Files\SomeApp\SomeApp.exe"]
It has no capability to close an application.
Re: open app close app
rain meter does have the capability to execute .exe and you can write a batchjsmorley wrote:There is basically nothing about this that is valid Rainmeter functionality. The long and the short of it is that while Rainmeter can start an application with
LeftMouseUpAction=!Execute ["C:\Program Files\SomeApp\SomeApp.exe"]
It has no capability to close an application.
taskkill /f /im .... /t
compile it as .exe
than rainmeter can execute .exe1 (open app1)
execute .exe2 (close app1)
Re: open app close app
I have just recently started to mess around with rainmeter.jsmorley wrote: LeftMouseUpAction=!Execute ["C:\Program Files\SomeApp\SomeApp.exe"]
How does RainMeter interrupt spaces, will it accept them? Batch scripts don't like them so I tend to use C:\PROGRA~1 as the path for "Program Files"
Anyway you can work around Rainmeters limitations and get it to both open and close a program. I'm looking for a method to get leftMouseUpAction to both open and close a app
using leftMouseUp and LeftMouse down causes issues and using leftMouseUp and RightMouseUp/Down is a solution but not the one i'm looking for.
I've been messing with the If Conditional built in
Probably going to have to also use the calc plugin and set a variable to [open] [close] so that calc and the If Conditional together would get it to work.
There is always more than one way to solve any given problem. If someone has some ideas i'd love to hear them.