sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Is window.location="skp:" a protocol?

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 867 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Jim
      last edited by

      So I was looking at my File Types setting in XP and noticed these URL handler types.
      494.png
      So might it be possible to add a SKP: protocol handler for firefox?

      Not that I have a use at the moment, just wondering.

      Hi

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        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.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          @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.)

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            Links of Interest

            • MSDN: [Asynchronous Pluggable Protocols](http://msdn.microsoft.com/en-us/library/aa767743(v)

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              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.

              Hi

              1 Reply Last reply Reply Quote 0
              • Dan RathbunD Offline
                Dan Rathbun
                last edited by

                Yup ... but really the better course would be duplex pipes.

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement