Is window.location="skp:" a protocol?
-
So I was looking at my File Types setting in XP and noticed these URL handler types.
So might it be possible to add a SKP: protocol handler for firefox?Not that I have a use at the moment, just wondering.
-
It look seem like a protocol. I have wondered how SU and the webcontrol handles this.
Maybe there are something explained in the documentation for the webcontrol.@jim said:
So might it be possible to add a SKP: protocol handler for firefox?
should be, yes - like Skype does to trigger calls.
-
@thomthom said:
It look seem like a protocol. I have wondered how SU and the webcontrol handles this.
I think it is specifically called a "Ghost Protocol". I'll see if I can find the MSDN page that I read (months ago on the topic.)
-
Links of Interest
- MSDN: [Asynchronous Pluggable Protocols](http://msdn.microsoft.com/en-us/library/aa767743(v)
-
So I found this mozilla article. I was trying to register the protocol in Firefox, but that only works for non-windows. I used the example .reg file from the article - replacing "foo" with "skp" and Firefox then asked me what program to use to open the skp: protocol. I selected TDB's sub.exe to handle the protocol.
And after that, entering the
javascript:window.location="skp:hi"
in the address bar did indeed run sub.exe, but sub.exe is looking for a file named skp:hi.I wonder if making sub.exe accept stdin would be better, and if it's possible.
So maybe with a little more trickery it's possible to have (at least one way) comms from Firefox to Sketchup.
Still not sure if this is going anywhere - I just find it interesting.
-
Yup ... but really the better course would be duplex pipes.
Advertisement