How do I register a protocol to work with my program?
I'd like my program to be summoned when a browser tries to open a page with the protocol "tf2emp://xxxxx". The program will then have to download content based on the 5 digit number given in said protocol. My program is written in python, and I'm us开发者_高级运维ing wx for the gui.
This page from Mozilla should help you register protocols for Mozilla Firefox on WIndows and Linux. Similar info exists for other browsers/platforms, Google is your friend. :)
Have a peek at Microsoft's page on the subject:
http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx
精彩评论