it's killing me (catching URL passing to Steam)

20 views
Skip to first unread message

Chris green

unread,
Oct 27, 2016, 1:51:03 AM10/27/16
to CefSharp
i have a basic browser with no buttons loading a web page with Steam links e.g(steam://rungameid/55150)

what i want to do is have the program catch Steam URL's then pass them to Steam

this is what i have so far
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;
using System.Media;

namespace Steam_manager
{

   
public partial class Form1 : Form
   
{
       
public ChromiumWebBrowser chromeBrowser;
 
       
public Form1()
       
{
           
InitializeComponent();
           
// Start the browser after initialize global component
           
InitializeChromium();
       
}

       
       
public void InitializeChromium()
       
{
           
CefSettings settings = new CefSettings();
           
Cef.Initialize(settings);
            chromeBrowser
= new ChromiumWebBrowser("https://www.google.co.uk");
           
this.Controls.Add(chromeBrowser);
            chromeBrowser
.Dock = DockStyle.Fill;

           
       
}
       
private void Form1_Load(object sender, EventArgs e)
       
{
           
           
       
}
       
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
       
{
           
Cef.Shutdown();
       
}        
   
}
}




Reply all
Reply to author
Forward
0 new messages