Greetings, I've been trying to come up with a global command to play a sound when pasting to windows. I can't get it to work, exceptions keep getting thrown at me. Is it allowed to ask for guidance here?
This is my "Play Sound on Copy" command, which plays a sound and copies the selected text to the clipboard and copyq ...
[Command]
Name=Play Sound on Copy
Command="
powershell:
$mydocuments=[environment]::getfolderpath(\"mydocuments\");(New-Object Media.SoundPlayer \"$mydocuments\\MMT\\CopyQ\\sounds\\WoodClickUp.wav\").PlaySync()"
Automatic=true
Icon=\xf028
Log says: CopyQ Note [2021-10-22 12:53:19.713] <Client-23948>: Command "Play Sound on Copy": Finished in 1424 ms
And this is my "Play Sound on Paste" command, which doesn't work. No sound is produced, and nothing is pasted.
Greetings, I've been trying to come up with a global command to play a sound when pasting to windows. I can't get it to work, exceptions keep getting thrown at me. Is it allowed to ask for guidance here?
This is my "Play Sound on Copy" command, which plays a sound and copies the selected text to the clipboard and copyq ...
And this is my "Play Sound on Paste" command, which doesn't work. No sound is produced, and nothing is pasted.
Please tell me what I'm doing wrong - and thank you so much.