We have eliminated the need for the command !Execute when using a bang. That command was a leftover from some long-gone support for LiteStep, and really wasn't needed to define bangs in Rainmeter.
So:
LeftMouseUpAction=!Execute [!HideMeter Meter1][!Redraw]
becomes:
LeftMouseUpAction=[!HideMeter Meter1][!Redraw]
And:
LeftMouseUpAction=!Execute ["C:\Windows\Notepad.exe"]
becomes:
LeftMouseUpAction=["C:\Windows\Notepad.exe"]
You still need the brackets [] to indicate multiple bangs on one action, and should use the brackets when calling external applications enclosed in quotes, but no longer need the !Execute at any time.
http://rainmeter.net/cms/Bangs_beta
It is currently September 1st, 2024, 1:07 am
Skins: !Execute deprecated
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
-
- Posts: 104
- Joined: September 18th, 2011, 6:37 am
- Location: Nanjing, China
Re: !Execute has been made optional in bangs
Once I downloaded the latest beta I delete all "!Execute" in my skin but here are two problems
some old one:
and this is from http://rainmeter.net/cms/Bangs_beta
so it goes to
but this won't work, and I realized that Rainmeter will treat matched quotes around an option/variable as the indicator so the actual option is
however
and
will work
also I use
to block Rainmeter's context menu, any idea for not using "!Execute" ?
some old one:
Code: Select all
LeftMouseUpAction=!Execute ["notepad.exe" "#CURRENTPATH##CURRENTFILE#"]
Code: Select all
LeftMouseUpAction="C:\Windows\Notepad.exe" "FileToOpen.txt"
Code: Select all
LeftMouseUpAction="notepad.exe" "#CURRENTPATH##CURRENTFILE#"
Code: Select all
notepad.exe" "#CURRENTPATH##CURRENTFILE#
Code: Select all
LeftMouseUpAction=""C:\Windows\Notepad.exe" "FileToOpen.txt""
Code: Select all
LeftMouseUpAction=["C:\Windows\Notepad.exe" "FileToOpen.txt"]
also I use
Code: Select all
RightMouseUpAction=!Execute
-
- Developer
- Posts: 2873
- Joined: April 17th, 2009, 12:18 pm
Re: !Execute has been made optional in bangs
This is the "correct" method. [] should always be used with commands to avoid problems like the one you described (quotes around the value are stripped). The documentation will be updated to reflect this.XANCI wrote:will workCode: Select all
LeftMouseUpAction=["C:\Windows\Notepad.exe" "FileToOpen.txt"]
You should continue to use !Execute there.XANCI wrote:also I useto block Rainmeter's context menu, any idea for not using "!Execute" ?Code: Select all
RightMouseUpAction=!Execute
-
- Posts: 104
- Joined: September 18th, 2011, 6:37 am
- Location: Nanjing, China
Re: !Execute has been made optional in bangs
poiru wrote:The documentation will be updated to reflect this.
Code: Select all
LeftMouseUpAction={"C:\Windows\Notepad.exe" "FileToOpen.txt"]
![Smiler :)](./images/smilies/ab.gif)
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: !Execute has been made optional in bangs
You can really use just about anything there to have an action that does nothing, while blocking the native functionality of the click in Rainmeter. This works fine too:poiru wrote: You should continue to use !Execute there.
[Meter1]
Meter=Image
SolidColor=255,255,255,255
W=30
H=30
MouseActionCursor=0
RightMouseUpAction=NULL
Personally, I would get out of the habit of using !Execute at all, so I'm not tempted to forget and use it where it isn't needed. To each his own though.
-
- Posts: 1175
- Joined: June 9th, 2010, 5:56 pm
- Location: Locks heath, UK
Re: !Execute has been made optional in bangs
Forgotten already...jsmorley wrote:Personally, I would get out of the habit of using !Execute at all
![Cool 8-)](./images/smilies/af.gif)
-
- Developer
- Posts: 2873
- Joined: April 17th, 2009, 12:18 pm
Re: !Execute has been made optional in bangs
It works only as long as you don't have NULL.exe in your PATH (otherwise NULL.exe would be launched).jsmorley wrote:You can really use just about anything there to have an action that does nothing, while blocking the native functionality of the click in Rainmeter. This works fine too:
...
RightMouseUpAction=NULL
On further thought, I think RightMouseUpAction=[] would be best. It doesn't (try to) do anything and it conveys its purpose more clearly than a bare !Execute.jsmorley wrote:Personally, I would get out of the habit of using !Execute at all, so I'm not tempted to forget and use it where it isn't needed. To each his own though.
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: !Execute has been made optional in bangs
Yeah, that makes sense.poiru wrote: It works only as long as you don't have NULL.exe in your PATH (otherwise NULL.exe would be launched).
On further thought, I think RightMouseUpAction=[] would be best. It doesn't (try to) do anything and it conveys its purpose more clearly than a bare !Execute.
-
- Developer
- Posts: 686
- Joined: August 15th, 2009, 2:41 pm
- Location: Osaka, JPN
Re: !Execute has been made optional in bangs
I prefer it, too. I'm using !Execute [] for a long time.poiru wrote: On further thought, I think RightMouseUpAction=[] would be best. It doesn't (try to) do anything and it conveys its purpose more clearly than a bare !Execute.
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: !Execute has been made optional in bangs
Yes, the one thing you can't use, as it doesn't work right, isspx wrote: I prefer it, too. I'm using !Execute [] for a long time.
LeftMouseUpAction=""