Hello all, I just made piece of software as an experiment and it is actually pretty fun to use. It is like a voice control program for your computer. You say “launch foo” and it launches foobar2000, and whatever else I make it do.
My question is, I tried making it launch Counter Strike: Global Offensive and it worked, but I get a message saying because I didn’t launch it through steam, my game will not validate with VAC servers (so no competitive). How do I launch my games through my voice software but maintain Steam compatibility?
It would be helpful if you provided some code samples or an outline of your implementation. Sounds like you're just finding and running the executable (.exe). You'll need to run the exe through the Steam client wrapper -- I don't know how Steam does it but they really only have two options: wrap the exe on the fly, or create a wrapped exe file.
If it's the second, you're in luck, you'll just have to use the CSGO.exe file that Steam uses. If it's the first it might be trickier as you'll have to start the Steam client (easy) then write code to manipulate the DOM and click the CSGO button (less easy).
If your program will work with shortcuts: open up steam, right click the game you want to be able to launch, click "create desktop shortcut", then set your program to launch the shortcut. There's also a chance you could just use the URL that the shortcut uses instead of keeping the shortcut file (you can find this in properties).
Thank you guys for your replies! I will try seeing if there is a separate executable that steam produced, and I will also try the shortcut thing
I will let you guys know the results.
So I tried the shortcut thing first, and I noticed that in the URL section of the shortcuts properties, there was a command of some sort, not a file address. It was steam://rungameid/730. I put that in the line of code that starts the process,
System.Diagnostics.Process.Start(@"steam://rungameid/730");
and it now works.
Thank you guys, and btw this is in C# if anyone was wondering.