Results 1 to 4 of 4

This is a discussion on how to start external applications? within the Chrome Plugins section, part of the Google Chrome category: i am looking for a way to allow Google Chrome browser to launch an external application. notepad/wordpad, games, video and ...


  1. #1
    floral is offline Junior Member
    Join Date
    May 2010
    Posts
    1

    Default how to start external applications?

    i am looking for a way to allow Google Chrome browser to launch an external application. notepad/wordpad, games, video and audio files in vlc media player. I have created a local computer website for the purposes of controlling my computer. It gives access to images and stories with size, text colour, background colour/image controls(saveable) with the help of javascript, html, and css. when it comes to the application side though i cannot get them to launch. i have html image buttons ready to launch them but the most i get is a request to download the file i am trying to launch. how do i get the browser to just launch such a file, without any security questions?

    floral

  2. #2
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    Only way I can think of off hand is to make a program that will launch the file passed to it, if that's even necessary.. and make it handle a new schema (like http:// ftp:// irc:// etc, but your own name). Then make all the links use that schema so when you click them it will launch the app.
    For personal use that'd be fine..just remember it'd apply to remote sites without security checks, so it'd technically leave you open to sites running random stuff on your computer.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  3. #3
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    If your on Windoze this might help.....
    http://customurl.codeplex.com/
    ...never tried it

    This'll prolly be relevant aswell....
    http://www.google.com/support/forum/...2d974418&hl=en
    Last edited by PAEz; 05-19-2010 at 01:58 PM.

  4. #4
    Vaynag is offline Junior Member
    Join Date
    May 2010
    Posts
    2

    Default

    The best way to do it is to configure a custom URL protocol.

    You need to add some registry entries to show what program handles the protocol, but this way you can also pass parameters through.

    EG: Create a custom URL protocal called 'Blah' that opens notepad

    Add the following registry entries:
    1. Right click on [HKEY_CLASSES_ROOT] and add a new key:
    Blah

    2. Right click on [HKEY_CLASSES_ROOT\Blah] add a new string:
    URL Protocol

    <Leave this string blank>

    3. Right click on [HKEY_CLASSES_ROOT\Blah] and add a new key:
    shell

    4. Right click on [HKEY_CLASSES_ROOT\Blah\shell] and add a new key:
    open

    5. Right click on [HKEY_CLASSES_ROOT\Blah\shell\open] and add a new key:
    command

    6. In [HKEY_CLASSES_ROOT\Blah\shell\open\command] edit the string value (default):
    "C:\windows\notepad.exe"

    7. You can now call notepad from a URL using this syntax:
    <a href="Blah:">Open Notepad</a>

    There's a good article here that describes passing parameters and launching custom apps

Similar Threads

  1. Where to start.......
    By couponmeup in forum Plugins Development
    Replies: 17
    Last Post: 04-28-2010, 07:30 PM
  2. How to call "external" javascript functions?
    By konda in forum Plugins Development
    Replies: 1
    Last Post: 03-25-2010, 06:33 AM
  3. gmail checker in Chrome/Google applications
    By vossloh in forum Plugins Troubleshooting
    Replies: 6
    Last Post: 12-30-2009, 03:17 AM
  4. Can't use corporate web based applications
    By stutenberg in forum Chrome Troubleshooting
    Replies: 3
    Last Post: 11-17-2009, 02:53 PM
  5. Using Chrome to start an external application
    By ericm76903 in forum Chrome Talk
    Replies: 3
    Last Post: 10-14-2009, 01:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •