Hi,Hello. Could you make the program window by default or optionally hidden? Otherwise, sometimes the games switch to it when sending the command and the desktop becomes visible.
Dim WShell Set WShell = CreateObject("WScript.Shell") For Index = 0 To WScript.Arguments.Count - 1 Arguments = Arguments & " " & WScript.Arguments(Index) Next Arguments = Replace(Arguments,"'","""") WShell.Run "OBSCommand.exe " & Arguments, 0 Set WShell = Nothing
Thank you. Implemented a similar call without a window through nircmd. What method do you think is safer and faster?Hi,
OBSCommand is a command line tool and does not have a program window, it depends on how you start it if you see a console or not.
Try choosing "minimized" or "hidden" if you have that options in the app you are using to start OBSCommand.
If that's not an option, there are workarounds like this:
1. Create a file in notepad, name it "OBScmdHidden.vbs" and place it next to OBSCommand.exe
Nircmd is perfectly fine, just use what you prefer, I don't see any security issue. Which one is faster I did not test that but I think if there is a difference it will probably be minimal.Thank you. Implemented a similar call without a window through nircmd. What method do you think is safer and faster?
Read the rest of this update entry...- Added /delay (single delay) and /setdelay (global delay) feature
Thanks for sharing! But why did you not ask me for the latest sources, the new "generalized" version of obs-websocket-dotnet makes everything so much easier... https://pastebin.com/8abvhyycI ported this to C#, in .NET core, minus the Volume Control options: https://github.com/PatriotDevOps/OBSCommand
Feel free to help finish it if you want, I just didn't feel it was worth my time to add Volume Control since I didn't need it. I also have added an AHK script to the project for automating restream.io, which I use for my own purpose to set titles when going live.
Big thanks for writing this, it really helped me clear up some issues I had with a junk script I was using before.