Hi. How open website that parse with RegEx?
I try this but doesn't work:
[MeterAlbum1]
Meter=String
MeterStyle=TextStyle
MeasureName=measureAlbum1
MeasureName2=measureAlbumLink1
X=10
Y=40
W=180
H=15
AntiAlias=1
ClipString=1
ToolTipText=%1
LeftMouseDownAction=!Execute[%2]
It is currently May 7th, 2024, 1:32 pm
LeftMouseDownAction Execute
-
- Posts: 9
- Joined: December 22nd, 2015, 8:11 pm
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LeftMouseDownAction Execute
[MeterAlbum1]PwnOwned wrote:Hi. How open website that parse with RegEx?
I try this but doesn't work:
[MeterAlbum1]
Meter=String
MeterStyle=TextStyle
MeasureName=measureAlbum1
MeasureName2=measureAlbumLink1
X=10
Y=40
W=180
H=15
AntiAlias=1
ClipString=1
ToolTipText=%1
LeftMouseDownAction=!Execute[%2]
Meter=String
MeterStyle=TextStyle
MeasureName=measureAlbum1
X=10
Y=40
W=180
H=15
AntiAlias=1
ClipString=1
ToolTipText=%1
LeftMouseUpAction=["[measureAlbumLink1]"]
DynamicVariables=1
The %1, %2 ... construct to replace text with a bound measure value is not available in actions or bangs.
https://docs.rainmeter.net/manual/variables/section-variables/
Use LeftMouseUpAction instead of LeftMouseDownAction.
https://docs.rainmeter.net/manual/mouse-actions/#LeftMouseUpAction
Don't use !Execute in bangs. That has long, long ago been deprecated.
https://docs.rainmeter.net/manual/bangs/#Deprecated
-
- Posts: 9
- Joined: December 22nd, 2015, 8:11 pm
Re: LeftMouseDownAction Execute
jsmorley, Yes all working. Thank you for fast reply, and thank for the tips
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LeftMouseDownAction Execute
Glad to help.
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
Good morning all,
It's been a long time.
I post at the end of this post because I have a pretty basic problem that I can not yet solve ...
I show yow :
#@#Raccourcis\ for path
[#URL1] Name with extention of shortcut
the image is displayed correctly but the shortcut cannot be launched ...
If you look closely, a few years ago I had already done the equivalent, everything worked. But in vain I do the same and it doesn't work ...
I did the same below like this in text :
RCI1 is name without extention
URL1 is name with extention
Yes RCI1 is not use here
Here path and name are ok in Text= but i cant use %2 in LeftMouseDownAction=
It's been a long time.
I post at the end of this post because I have a pretty basic problem that I can not yet solve ...
I show yow :
Code: Select all
[Game1]
Meter=Image
MeasureName=#Picture1#
ImageName=#@#Jaquettes\%1
X=25
Y=20
LeftMouseDownAction=["[#@#Raccourcis\[#URL1]]"]
DynamicVariables=1
[#URL1] Name with extention of shortcut
the image is displayed correctly but the shortcut cannot be launched ...
If you look closely, a few years ago I had already done the equivalent, everything worked. But in vain I do the same and it doesn't work ...
I did the same below like this in text :
Code: Select all
[Game1LNK]
Meter=string
MeasureName=#RCI1#
MeasureName2=#URL1#
Text="#@#Raccourcis\%2"
x=0r
y=200r
FontColor=255,255,255,255
LeftMouseDownAction=["[#@#Raccourcis\[#URL1]]"]
DynamicVariables=1
URL1 is name with extention
Yes RCI1 is not use here
Here path and name are ok in Text= but i cant use %2 in LeftMouseDownAction=
Last edited by balala on September 28th, 2020, 2:34 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
-
- Rainmeter Sage
- Posts: 16201
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: LeftMouseDownAction Execute
What [#URL1] is? Is it a variable? Becasue it seems to be. If this is correct and it indeed is a variable, try replacing the LeftMouseDownAction=["[#@#Raccourcis\[#URL1]]"] option with the classical way of writing variables: LeftMouseDownAction=["[#@#Raccourcis\#URL1#]"].
If this doesn!t help, please post the whole code, in order to can check it.
Additional note: it is not recommended to use LeftMouseDownAction if it is not absolutely needed. Instead recommend the LeftMouseUpAction. In the Note here you can find out why.
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
Bonjour Balala et merci de ton aide.
[#URL1] is indeed a variable.
I already tried : LeftMouseDownAction=["[#@#Raccourcis\#URL1#]"].
But that does not give what it takes. I show you :
#URL1# is a name shortcut, here, it's "Dragon ball Kakarot.lnk"
If i take #URL1# in MeasureName and Text=#@#Raccourcis\%1, result is C:\blablabla\Raccourcis\Dragon Ball Kakarot.lnk
But with Text=#@#Raccourcis\#URL1# result is C:\blablabla\Raccourcis\CalculeURL1...
so i think if the launcher doesn't work it's because of this result including "calcule" instead of "\dragon ball..."
[#URL1] is indeed a variable.
I already tried : LeftMouseDownAction=["[#@#Raccourcis\#URL1#]"].
But that does not give what it takes. I show you :
Code: Select all
[Game1RAC]
Meter=string
Text=#@#Raccourcis\#URL1#
x=10r
y=200r
FontColor=255,255,255,255
DynamicVariables=1
If i take #URL1# in MeasureName and Text=#@#Raccourcis\%1, result is C:\blablabla\Raccourcis\Dragon Ball Kakarot.lnk
But with Text=#@#Raccourcis\#URL1# result is C:\blablabla\Raccourcis\CalculeURL1...
so i think if the launcher doesn't work it's because of this result including "calcule" instead of "\dragon ball..."
Last edited by balala on September 28th, 2020, 3:45 pm, edited 2 times in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
I could give you the whole code but that would be VERY big ...
I use 1 skin as a button. I then use a scan of shortcuts in a folder to recover all the "lnk" files (game shortcuts)
Then a second scan to do the same in an image folder (Games image)
Then I use an open menu with the button that displays the images of the games and clicking on one of them launches the corresponding game.
Everything works fine to link the game title to the corresponding image automatically, without having to modify the code if I change my shortcut and image. But for some reason I can't see, I can't correctly fill in the location and name of the shortcut in the "LeftMouseDownAction="
I use 1 skin as a button. I then use a scan of shortcuts in a folder to recover all the "lnk" files (game shortcuts)
Then a second scan to do the same in an image folder (Games image)
Then I use an open menu with the button that displays the images of the games and clicking on one of them launches the corresponding game.
Everything works fine to link the game title to the corresponding image automatically, without having to modify the code if I change my shortcut and image. But for some reason I can't see, I can't correctly fill in the location and name of the shortcut in the "LeftMouseDownAction="
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
Ok ... I know where the famous "CalculeURL1" comes from without knowing why it displays this ...
In scan.ini for shortcuts,the variable URL1=CalculeURL1...
This is it :
Why in measureName=#URL1# i have result of CalculeURL1 and in #URL1# directly i have the name of it ?
In scan.ini for shortcuts,the variable URL1=CalculeURL1...
This is it :
Code: Select all
[CalculeURL1]
Measure=Plugin
Plugin=FileView4
Path=[MeasureFolderURL]
Type=FileName
Index=1
IfMatch=.*url.*
IfMatchAction=[!SetOption EXT1 String ".url"]
IfMatch2=.*lnk.*
IfMatchAction2=[!SetOption EXT1 String ".lnk"]
IfMatchMode=1
DynamicVariables=1
Last edited by balala on September 28th, 2020, 3:59 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
-
- Rainmeter Sage
- Posts: 16201
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: LeftMouseDownAction Execute
I'm not sure how are you doing this, because you can't use a variable into a MeasureName option, at least not for getting what a measure does return. How does that MeasureName option looks like and where is it used?