It is currently March 29th, 2024, 11:17 am

FileCount and WildcardSearch

Get help with creating, editing & fixing problems with skins
Judian81
Posts: 180
Joined: May 6th, 2021, 2:57 pm

FileCount and WildcardSearch

Post by Judian81 »

hello rainmeter,

i am trying to make a combobox and i have listed 2000 rom files. there is an input box were i type for example "duck" and
that will update mFolder WildcardSearch to WildcardSearch="*duck*"
then i can see all the games listed with the word duck in it. but the problem is. how can i update the filecount?

search list.png

Code: Select all

[mFileCount]
Measure=Plugin
Plugin=FolderInfo
Folder=#vPath#\
InfoType=FileCount
DynamicVariables=1

[mFolder]
Measure=Plugin
Plugin=FileView
Path=#vPath#
ShowDotDot=0
Count=[mFileCount]
HideExtensions=1
WildcardSearch="*duck*"
DynamicVariables=1
search list_v0.9.rmskin
You do not have the required permissions to view the files attached to this post.
User avatar
tass_co
Posts: 511
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: FileCount and WildcardSearch

Post by tass_co »

Judian81 wrote: October 3rd, 2022, 3:41 pm hello rainmeter,

i am trying to make a combobox and i have listed 2000 rom files. there is an input box were i type for example "duck" and
that will update mFolder WildcardSearch to WildcardSearch="*duck*"
then i can see all the games listed with the word duck in it. but the problem is. how can i update the filecount?
I'm not sure but did you try to Recursive options?
FileView Plugin - Recursive
I don't know where i going from here, but i promise it won't be boring... :great:
Judian81
Posts: 180
Joined: May 6th, 2021, 2:57 pm

Re: FileCount and WildcardSearch

Post by Judian81 »

tass_co wrote: October 3rd, 2022, 3:59 pm I'm not sure but did you try to Recursive options?
FileView Plugin - Recursive
thanks for your reply. i just found out there are two measures. one there is a fileview and the second is the folderinfo plugin.

so i created a new measure like this. i am now using fileview and not the folderinfo.

Code: Select all

[mCount1]
Measure=Plugin
Plugin=FileView
Path=[mFolder]
Type=FileCount
Index=1
DynamicVariables=1
and i read the total files that are found by the WildcardSearch like this.

Code: Select all

[Item1]
Meter=String
MeterStyle=sTextLeft
MeasureName=mCount1
SolidColor=0,0,0,1
X=((7*#vSkinScale#)+#paddingLeft#)
Y=((9*#vSkinScale#)+#paddingTop#)
W=((#vSkinWidth#-66)*#vSkinScale#)
H=(18*#vSkinScale#)
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure mInput "ExecuteBatch 1"]
MouseActionCursorName=TEXT

thanks. another step forward. :thumbup: