Hello,
I’m having diffiuculties solving a script…
I basically want to activate a specific window on my PC once my phone is either ringing or off-hook.
I’m therefore trying to send a mqtt payload via Iotlink.
- service: mqtt.publish
data:
topic: "iotlink/workgroup/pc/commands/run"
payload: '{ "command": "c:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe", "args": "nircmd.exe nircmd win activate title "Phone call"", "path": "", "user": "", "visible": false, "fallback": true }'
The problem I have is the double quote between “Phone call” (name of the window I want to activate). It messes the command line and doesn’t follow the syntax of the command.
Does anyone has any solution for my problem?
I both try replacing with ’ ', it does work on powershell but unfortunately doesn’t in iotlink…
Thanks a lot for your help!!
@alexslx