It is currently April 23rd, 2024, 7:22 pm

Help in Userinput for search file and folder

Get help with creating, editing & fixing problems with skins
User avatar
ZerOverdriver
Posts: 29
Joined: February 13th, 2017, 8:57 pm

Help in Userinput for search file and folder

Post by ZerOverdriver »

Hello, respected developers & skinmakers.
I read the linked information about the commands to search for different options and tried to experiment, but neither of which never happened. Be so kind to help me.

Code: Select all

[Rainmeter]
AccurateText=0
Update=-1
BackgroundMode=1

[Metadata]
Author=Alex Becherer
Name=Sphynx System Search
Information=
Version=1.0
License=(c) Alex Becherer

[Variables]
MyFolder=C:\

[MeterBack]
Meter=IMAGE
X=0
Y=0
ImageName="#@#spotlight.png"

[MeterTextInset]
Meter=String
DynamicVariables=1
X=135
Y=18
Text="Search:"
StringAlign=RIGHTCENTER
FontColor=ffffff50
FontSize=10
FontFace=Source Sans Pro
StringStyle=Bold
AntiAlias=1

[MeterText]
Meter=String
DynamicVariables=1
X=135
Y=17
Text="Search:"
StringAlign=RIGHTCENTER
FontColor=303040
FontSize=10
FontFace=Source Sans Pro
StringStyle=Bold
AntiAlias=1

[InputText]
Measure=Plugin
Plugin=InputText
UpdateDivider=-1
Command1=["search-ms:crumb=folder:#MyFolder#&query=$UserInput$&"]
FocusDismiss=1
FontColor=282833
FontFace=Source Sans Pro
FontSize=8
X=150
Y=9
W=278
H=14
SolidColor=ffffff
StringAlign=LEFTCENTER
AntiAlias=1
DynmamicVariables=1

[OutputMeter]
Meter=Image
SolidColor=00ff0000
X=144
Y=4
W=290
H=25
LeftMouseUpAction=[!CommandMeasure InputText "ExecuteBatch 1"]
DynamicVariables=1
MouseActionCursorName=Text
TooltipText="Type to search"
Copied the code and worked with it and changed the syntax of the command, but nothing happens.
Please help to understand this problem.
Need search files and folders on your computer for part of the name as well as in Windows 7.
I guess that can be a stupor for disabled indexing of files and folders.
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help in Userinput for search file and folder

Post by balala »

The color of the [OutputMeter] meter is set to SolidColor=00ff0000, which is totally transparent (due to the last two 00 of this color code). As such, you can't click it. Replace this with something like SolidColor=00ff0064, which will be visible and you will be able to use it to enter the strings you want to search for. The last two digits of (any) color code, give the transparency of the field, 00 means totally transparent and ff means totally opaque.

I know that's just a question of personal preferences, but me personally like much more the color codes written in their "classical" form. Eg instead of 00ff0000, I'd write 0,255,0,0. Again, the form you've used is not wrong, it works and can be used, it's just my habit.
Also note that if you want to use a shadow effect on strings, you don't have to create two distinct string meters (as you did with the [MeterTextInset] and [MeterText] meters). One is completely enough, just have to add a StringEffect option to that meter. I mean that the mentioned two meters ([MeterTextInset] and [MeterText]) can be replaced with the following one:

Code: Select all

[MeterText]
Meter=String
DynamicVariables=1
X=135
Y=17
Text="Search:"
StringAlign=RIGHTCENTER
FontColor=303040
StringEffect=Shadow
FontEffectColor=ffffff50
FontSize=10
FontFace=Source Sans Pro
StringStyle=Bold
AntiAlias=1
This way, you'll achieve almost the same result, but with one single meter, instead of two.
User avatar
ZerOverdriver
Posts: 29
Joined: February 13th, 2017, 8:57 pm

Re: Help in Userinput for search file and folder

Post by ZerOverdriver »

Author=Alex Becherer - is not me.
Solving problems of color and shadows and transparency did not help.
Actually a transparent area in Rainmeter - clickable, but that is not important.

I also like the symbol in the code for the color in RGB format.

But most importantly, what is not does not start search for files and folders.

Please, let's find a solution to this problem.
Tell me if you have this skin (the search function in the computer), even when to change color?

Please please give me the code which will run a search of files and folders like in Windows.
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Help in Userinput for search file and folder

Post by CyberTheWorm »

balala wrote:The color of the [OutputMeter] meter is set to SolidColor=00ff0000, which is totally transparent (due to the last two 00 of this color code). As such, you can't click it. Replace this with something like SolidColor=00ff0064,
After I made that change your code seems to work for me. I was able to get a search window pop up using the text I had entered.
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help in Userinput for search file and folder

Post by balala »

ZerOverdriver wrote:Author=Alex Becherer - is not me.
Doesn't matter too much who is the author of the code, I think.
ZerOverdriver wrote:Actually a transparent area in Rainmeter - clickable, but that is not important.
Actually that's not! A transparent area in Rainmeter, doesn't interact with the mouse.
ZerOverdriver wrote:But most importantly, what is not does not start search for files and folders.
Please, let's find a solution to this problem.
Tell me if you have this skin (the search function in the computer), even when to change color?
It seems that the most important question is what version of Windows are you using? Because, as same as for CyberTheWorm, the posted code does work perfectly for me, on my computer with Windows 10 (if I'm not wrong, CyberTheWorm also uses Windows 10). It does search and find the appropriate files. But I just tried it onto a Windows 7 and it doesn't work there. I suppose a this kind of search isn't supported by previous versions of Windows (however I'm not sure about the Windows 8 or 8.1, don't have acces to a such system, so can't say anything about it).
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Help in Userinput for search file and folder

Post by fonpaolo »

balala wrote:...
It seems that the most important question is what version of Windows are you using? Because, as same as for CyberTheWorm, the posted code does work perfectly for me, on my computer with Windows 10 (if I'm not wrong, CyberTheWorm also uses Windows 10). It does search and find the appropriate files. But I just tried it onto a Windows 7 and it doesn't work there. I suppose a this kind of search isn't supported by previous versions of Windows (however I'm not sure about the Windows 8 or 8.1, don't have acces to a such system, so can't say anything about it).
Sorry, tested the command in my skin, I'm using Win 7 Pro and it works. ;-)
Maybe it's because I'm still using 3.3?
User avatar
ZerOverdriver
Posts: 29
Joined: February 13th, 2017, 8:57 pm

Re: Help in Userinput for search file and folder

Post by ZerOverdriver »

Maybe then there is a universal way to send the string UserInput into the search folder?
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help in Userinput for search file and folder

Post by balala »

ZerOverdriver wrote:Maybe then there is a universal way to send the string UserInput into the search folder?
What Windows version do you use? And what Rainmeter version?
User avatar
ZerOverdriver
Posts: 29
Joined: February 13th, 2017, 8:57 pm

Re: Help in Userinput for search file and folder

Post by ZerOverdriver »

Windows 7 Maximum 64-bit •use most
Windows 10 Pro 64-bit •has a second system

Rainmeter 4.0.0 r2746 64-bit (Jan 1 2017)