Hack Forums
a local website to execute a local program. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: a local website to execute a local program. (/showthread.php?tid=5998137)



a local website to execute a local program. - Silent hill - Aug 11, 2019

hello hf!
anyone know how to execute any local program using html?
it's like this steam client bootstrap: example here:

i think there should be a registry key or a running services to execute steam when i click the button.
anyone has any idea? i can tip some $$
thanks!


RE: a local website to execute a local program. - Xing - Aug 11, 2019

If the program has registered a URL handler you can call it with it's URL Scheme which will launch the program,
Look into URL schemes (URL Scheme Intro for App Developers)

Steam registers it's own handler so you can launch games for example and do a bunch of other things https://developer.valvesoftware.com/wiki/Steam_browser_protocol
Code
// This opens CSGO, in your html you could set this as href to an anchor tag or via JS
steam://rungameid/730



RE: a local website to execute a local program. - Silent hill - Aug 11, 2019

(Aug 11, 2019 06:59 AM)Ramon Wrote:  If the program has registered a URL handler you can call it with it's URL Scheme which will launch the program,
Look into URL schemes (URL Scheme Intro for App Developers)

Steam registers it's own handler so you can launch games for example and do a bunch of other things https://developer.valvesoftware.com/wiki/Steam_browser_protocol
Code
// This opens CSGO, in your html you could set this as href to an anchor tag or via JS
steam://rungameid/730

thanks! i made it :)