Setting default sounddevice
as the title states my intention is to switch between my sounddevices with my remote. Usually i do that with my keyboard which has additional function-keys (SideWinderX4 keys "S1" to "S6"), which are executing e.g. the command "D:\nircmd.exe" setdefaultsounddevice "PHILIPS FTV-4" but why not do that with a remote too?
My problem: I don't know how to address these keys with the stroke-command since they are not in any list I could find. That would be the easiest way to go about this topic, since the tricky part is already covered by these keys.
Since I just installed UR I don't know if there's a better way to approach this, so I tried the os.start()-command. But I have trouble with the quotationmarks inside the quotationmarks, as you can see below. I've tried different forms, but I'm simply lacking the knowledge of the syntax. Can't find any exsamples for that in the forum either, nor can i discard of them because my TV has a name with a space in it.
Thanks in advance, Matze
P.S.: German here, so if it's easier for you we can continue the conversation in german.
local os = libs.os [email protected] Screen actions.command1 = function () os.start("D:\nircmd.exe setdefaultsounddevice "PHILIPS FTV-4""); end [email protected] Headset actions.command2 = function () os.start("D:\nircmd.exe setdefaultsounddevice "Headset""); end
Found the solution myself,
at the end it was just a small mistake: For files it's not '' but '/' as a seperator ... who the hell makes such a wierd programming-language?! Had the solution in my hands hours ago!
Works fine now for all the other marcos I'm using nircmd.exe with.
[email protected] Screen actions.command1 = function () os.start("D:/nircmd.exe", "setdefaultsounddevice \"PHILIPS FTV-4\""); end