sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

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

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 1.1k 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
      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
        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
          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
            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
              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
                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement