Doesn't matter, please post the code.
It is currently April 26th, 2024, 9:22 pm
LeftMouseDownAction Execute
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
I will try to give you the compet code in simplified form (only one shortcut, image, etc.)
////////////////////////
Picture on deskop like shortcut for launche menu.ini with pictures
////////////////////////
BUTTON.INI
//////////////////////////////////////////
Shortcuts pictures for launch games
//////////////////////////////////////////
MENU.INI
//////////////////////////////////////////
Scan Folder with shortcuts and say if it's ".lnk" or ".url" (for steam games)
//////////////////////////////////////////
SCANLNK.INI
///////////////////////////////////////////
Scan Folder with Pictures of games and say if it's ".jpg", ".jpeg" or ".png"
///////////////////////////////////////////
SCANIMG.INI
All of this with 2 folders, one for shortcuts and one for pictures
////////////////////////
Picture on deskop like shortcut for launche menu.ini with pictures
////////////////////////
BUTTON.INI
Code: Select all
[Fond]
Meter=Image
ImageName=Cadre.png
X=25
Y=20
h=205
w=485
LeftMouseDownAction= [!ToggleConfig "Honimoura\Games\Menu" "Menu.ini"]
[Games]
Meter=string
MeterStyle=TextStyle
StringAlign=CENTER
text=Games
x=100
y=180
FontColor=126,247,236,255
FontEffectColor=126,247,236,255
FontWeight=200
FontSize = 20
StringStyle = Italic
AntiAlias = 1
LeftMouseUpAction= [!ToggleConfig "Honimoura\Games\Menu" "Menu.ini"]
Shortcuts pictures for launch games
//////////////////////////////////////////
MENU.INI
Code: Select all
[Rainmeter]
Update=1000
AccurateText = 1
[Variables]
@include=ScanLNK.ini
@include2=ScanIMG.ini
folderpath=#@#Jaquettes
------------------------------
[Game1]
Meter=Image
MeasureName=#Picture2#
ImageName=#@#Jaquettes\%1
X=25
Y=20
LeftMouseDownAction=["[#@#Raccourcis\#URL1#]"] // Here is the problem
DynamicVariables=1
[Game1RAC]
Meter=string
Text=#@#Raccourcis\#URL1#
x=10r
y=200r
FontColor=255,255,255,255
DynamicVariables=1
Scan Folder with shortcuts and say if it's ".lnk" or ".url" (for steam games)
//////////////////////////////////////////
SCANLNK.INI
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
folderpath=#@#Raccourcis
RCI1=MeasureName1
URL1=CalculeURL1
-------------------------
[MeasureFolder]
Measure=Plugin
Plugin=FileView
Path="#folderpath#"
ShowDotDot=0
ShowFolder=0
Count=10
HideExtensions=1
[MeasureName1]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileName
Index=1
HideExtensions=1
---------------------------------------
[MeasureFolderURL]
Measure=Plugin
Plugin=FileView4
Path=#@#Raccourcis
ShowDotDot=0
ShowFolder=0
Count=10
[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
Scan Folder with Pictures of games and say if it's ".jpg", ".jpeg" or ".png"
///////////////////////////////////////////
SCANIMG.INI
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
folderpath=#@#Jaquettes
Picture1=IMG1
EXT1=CalculeLNKtoEXTIMG1
---------------------
[MeasureFolderIMG]
Measure=Plugin
Plugin=FileView2
Path="#folderpath#"
ShowDotDot=0
ShowFolder=0
Count=20
[IMG1]
Measure=Plugin
Plugin=FileView2
Path=[MeasureFolderIMG]
Type=FileName
Index=1
-------------------------------------------------
[MeasureFolderEXTIMG]
Measure=Plugin
Plugin=FileView3
Path=#@#Jaquettes
ShowDotDot=0
ShowFolder=0
Count=10
[CalculeLNKtoEXTIMG1]
Measure=Plugin
Plugin=FileView3
Path=[MeasureFolderEXTIMG]
Type=FileName
Index=1
IfMatch=.*jpg.*
IfMatchAction=[!SetOption EXT1 String ".jpg"]
IfMatch2=.*jpeg.*
IfMatchAction2=[!SetOption EXT1 String ".jpeg"]
IfMatch3=.*png.*
IfMatchAction3=[!SetOption EXT1 String ".png"]
IfMatchMode=1
DynamicVariables=1
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
I know some of "MeasureName" dont needed, but i use it for some tests
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: LeftMouseDownAction Execute
The posted codes don't help too much, but I see two mistakes in the LeftMouseDownAction option of the [Game1] meter:
- There are some not needed extra brackets, I marked them red here: LeftMouseDownAction=["[#@#Raccourcis\#URL1#]"]. Remove them: LeftMouseDownAction=["#@#Raccourcis\#URL1#"].
- Unlike in all programming languages (which Rainmeter isn't), in Rainmeter you can't add a comment to the end of an option. In most cases the comment is preventing the option to work properly. In your case, you've added such a comment into the LeftMouseDownAction option of the [Game1] meter: LeftMouseDownAction=["#@#Raccourcis\#URL1#"] // Here is the problem. Additinally the comment isn't even made with a semicolon (;), as it has to be done in Rainmeter, but with a double slash (as with in C). Remove that comment, or at least move it to the next line and use semicolon:
If you keep the posted comment as you have it, the LeftMouseDownAction option can't even work.
Code: Select all
[Game1] ... LeftMouseDownAction=["#@#Raccourcis\#URL1#"] ;Here is the problem
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
Sorry i have put //commentary only for you, it dont have it in original file.
Even with the correction it doesn't work. I've tried a number of ways to write it and it doesn't work. I think the problem is that the variable # URL1 # is equal to a measure, if I do "MeasureName" I get the result of the measure that the variable is linked to. But if I call the variable directly like with "LeftMouseUpAction" then I get the name of the measure and not its result ... which I don't understand ...
Even with the correction it doesn't work. I've tried a number of ways to write it and it doesn't work. I think the problem is that the variable # URL1 # is equal to a measure, if I do "MeasureName" I get the result of the measure that the variable is linked to. But if I call the variable directly like with "LeftMouseUpAction" then I get the name of the measure and not its result ... which I don't understand ...
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
If i do :
I have : C:\blabla\CalculeURL1
But if i do :
So i have : C:\blabla\Dragon Ball Kakarot.lnk
Why first give me the name of the measure and second give me the value of the measure ?
Code: Select all
[VARIABLES]
URL=CalculeURL1
;CalculeURL1 is a checker shortcut
[Game1RAC]
Meter=string
Text=#@#Raccourcis\#URL1#
x=10r
y=200r
FontColor=255,255,255,255
DynamicVariables=1
But if i do :
Code: Select all
Meter=string
MeasureName=#URL1#
Text=#@#Raccourcis\%1
x=10r
y=200r
FontColor=255,255,255,255
DynamicVariables=1
Why first give me the name of the measure and second give me the value of the measure ?
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: LeftMouseDownAction Execute
Please pack the whole config which contains the posted skins and upload the package here, because I can't follow all those codes you have there. If you upload the package please indicate which skin do I have to load, where is the mistake.Honimoura wrote: ↑September 28th, 2020, 6:03 pm Even with the correction it doesn't work. I've tried a number of ways to write it and it doesn't work. I think the problem is that the variable # URL1 # is equal to a measure, if I do "MeasureName" I get the result of the measure that the variable is linked to. But if I call the variable directly like with "LeftMouseUpAction" then I get the name of the measure and not its result ... which I don't understand ...
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
You need to copy/past your plugin FileView.dll for have FileView, FileView2, FileView3, FileView4.
I tried to add it to the skin but it asks me for a 32 bit version also which I don't have ...
I tried to add it to the skin but it asks me for a 32 bit version also which I don't have ...
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: LeftMouseDownAction Execute
Which skin do i have to load? What have me to do, to get the issue? A few explanations please...
If you give me the above details, I'm gonna take a look tomorrow, because here the midnigh is coming and I'm gonna go to sleep.
-
- Posts: 94
- Joined: April 3rd, 2018, 11:15 am
Re: LeftMouseDownAction Execute
no problem.
You need to load the button skin in Honimoura / Games /. By clicking on this skin it opens a "menu" which for the moment only displays an image corresponding to the first shortcut of the "Raccourcis" folder scanned by "scanLNK.ini" and the displayed image coming from the "Jaquettes" folder scanned by ScanIMG.ini.
By clicking on this image it launches the game (the shortcut) in question ... but that you may not have ... to test, you can add a shortcut in the "Raccourcis" folder in the first position and an image in the "Jaquettes" folder so that it shows you your software / game. And by clicking on this menu image, your software / game should start but the problem is precisely that it does not start ...
You need to load the button skin in Honimoura / Games /. By clicking on this skin it opens a "menu" which for the moment only displays an image corresponding to the first shortcut of the "Raccourcis" folder scanned by "scanLNK.ini" and the displayed image coming from the "Jaquettes" folder scanned by ScanIMG.ini.
By clicking on this image it launches the game (the shortcut) in question ... but that you may not have ... to test, you can add a shortcut in the "Raccourcis" folder in the first position and an image in the "Jaquettes" folder so that it shows you your software / game. And by clicking on this menu image, your software / game should start but the problem is precisely that it does not start ...