built-in WM_APPCOMMAND support

This commit is contained in:
Frank Skare
2020-05-08 08:26:44 +02:00
parent 726d759589
commit 5b3697fbde
21 changed files with 232 additions and 295 deletions

View File

@@ -0,0 +1,14 @@
# 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')
{
# probably works only with shell execute for which powershell has no built-in support
[Diagnostics.Process]::Start('explorer.exe', '/n, /select, "' + $mp.get_property_string('path') + '"')
}
}
$mp.register_event("client-message", $code)