A place to share commands you like to trigger remotely.
@Rafa, on a mac you can do this:
On my mac I typed: which ps4-waker
I saw this output: /usr/local/bin/ps4-waker
Then I ran this: ls -al /usr/local/bin/ps4-waker
And I saw something like this: /usr/local/bin/ps4-waker -> ../lib/node_modules/ps4-waker/dist/cli.js
So I knew the path for ps4-waker's cli.js file is /usr/local/lib/node_modules/ps4-waker/dist/cli.js
I typed this to find my Node JS executable: which node
It showed me this path: /Users/russ/.nvm/versions/node/v8.17.0/bin/node
I made ps4-waker my command in the TRIGGERcmd GUI editor this:
/Users/russ/.nvm/versions/node/v8.17.0/bin/node /usr/local/lib/node_modules/ps4-waker/dist/cli.js > ~/Desktop/ps4-waker.log 2>&1
This part is meant to log the output of the ps4-waker command: > ~/Desktop/ps4-waker.log 2>&1
When I looked at the log I saw this:
Could not detect any matching PS4 device
Your paths will likely be different depending on the output of your which commands.
Another way to find the path to your cli.js file is this command: find / | grep ps4-waker/dist/cli.js
@Chaim-Tscholkowsky, these worked for me. I ran them remotely via TRIGGERcmd and they closed VLC and AnyDesk.
taskkill /f /im vlc.exe /t
taskkill /f /im anydesk.exe /t
Do those work for you if you run them from a cmd prompt?
@Ricardo-Pereira, first, download the nircmd.exe file from here:
Copy the nircmd.exe file to c:\windows or some other folder that your PATH environment variable points to. That way you can make your commands like this:
Or, if you put nircmd.exe in a folder like c:\tools, then make your commands like this:
There are a lot of examples at that URL above, and the NirCmd.chm help file that nircmd comes with has even more.
I'm no expert on it but the one I use is:
MultiMonitorTool.exe /MoveWindow 5 Title "Microsoft Outlook"
In that section of the URL, there are a bunch of examples on its usage.
Run the tool by itself to determine the numbering of your monitors. Mine are 1, 2, and for some reason, 5.