14 lines
310 B
PowerShell
14 lines
310 B
PowerShell
|
|
# Shows the current file in File Explorer
|
|
|
|
# In input.conf add: <key> script-message show-in-file-explorer
|
|
|
|
$code = {
|
|
if ($args[0] -eq 'show-in-file-explorer')
|
|
{
|
|
Start-Process explorer.exe '/n,','/select,',"$($mp.GetPropertyString('path'))"
|
|
}
|
|
}
|
|
|
|
$mp.RegisterEvent("client-message", $code)
|