Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Edit: to help you out with your question: Check this out. Those are commands that can be pasted in your browser or Window's Run promp.
The one you wanna use is steam://run/<id>
steam://rungameid/<id> for non-steam games and modded games
Try to make your program to execute that command within your browser or Windows
replace <id> with the appid of the game
---
using System.Diagnostics;
bool ProcShell = false;
bool ProcWindow = false;
Process Proc = new Process();
startApp();
private void startApp()
{
Proc.StartInfo.FileName = "steam.exe";
Proc.StartInfo.Arguments = "-applaunch APPID CMDLINE";
Proc.StartInfo.UseShellExecute = ProcShell;
Proc.StartInfo.CreateNoWindow = ProcWindow;
Proc.Start();
}
developed in: c#
Create a desktop icon and hover your mouse over it to see the link.
This is quite an old thread and I already found a better solution for this. thank you anyways :)
static void LaunchViaSteam(string gameId)
{
try
{
string steamUrl = $"steam://rungameid/{gameId}";
Process.Start(new ProcessStartInfo
{
FileName = steamUrl,
UseShellExecute = true
});
}
catch (Exception ex)
{
Console.WriteLine("An error occurred: " + ex.Message);
}
}