It is currently April 20th, 2024, 4:23 am

Search Windows Explorer

Skins that control functions in Windows or Rainmeter
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Search Windows Explorer

Post by exper1mental »

This little proof-of-concept skin allows you to search from Rainmeter directly into Windows Explorer using search-ms Protocol.

Download
SearchExplorer v1.0.rmskin
Code

Code: Select all

[Rainmeter]
Update=500

[Variables]
Font=Segoe UI
SearchName=Search Windows
SearchURL=search-ms:query=$UserInput$&crumb=location:#SearchPath#&
SearchPath=shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d}
;{20d04fe0-3aea-1069-a2d8-08002b30309d} (ID of This PC)
;crumb=folder:E:\ (adding this searches E:\ drive)

[DefaultSearchBG]
Meter=IMAGE
Y=1
W=190
H=20
SolidColor=128,128,128

[DefaultSearchText]
Meter=STRING
H=20
W=190
Text=#SearchName#...
FontFace=#Font#
FontColor=0,0,0,255
FontSize=12
DynamicVariables=1
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure MeasureSearchInput "ExecuteBatch 1"]
 
[MeasureSearchInput]
Measure=Plugin
Plugin=InputText
Y=1
W=190
H=20
SolidColor=128,128,128
FontFace=#Font#
FontColor=0,0,0,255
FontSize=12
FocusDismiss=1
Command1=["#SearchURL#"] DefaultValue="#SearchName#..."
DynamicVariables=1
AntiAlias=1

Search Explorer Arguments
["search-ms:query=$UserInput$&crumb=location:shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d}&"] is how it looks when all the variables are removed.

search-ms:query=$UserInput$& is the part where rainmeter feeds in the text typed out by the user.

crumb=location:shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d}& is the location that Windows Explorer will search. You can delete this and Explorer will only search the windows drive.

Currently, it is set to search the CLSID Key (GUID) Shortcut shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d} which is This PC, this in English means Explorer will search all your drives. You can change this to any folder or drive you like. i.e. %USERPROFILE%\Documents

All valid folder paths, GUIDs, and Rainmeter variables will work here.


Helpful Links
You do not have the required permissions to view the files attached to this post.
Image