Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2003
    Location
    St. Paul, MN
    Posts
    540

    Launch Program from Inside Web

    Well, gosh, it's been a while since I've been over here asking questions...

    Simple one:

    Is there a way to launch a LOCAL program from inside a web page? What I want is a button that sends folks to execute a vanilla EXE on their machine.

    Thanks much...
    GcB
    Gary Brown
    Examiner Corporation
    "How do you know
    They know what they know?"

    Company:The Examiner
    Glass:FusedLight
    Politics:ObamaUSA

  2. #2
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by gbrown View Post
    Well, gosh, it's been a while since I've been over here asking questions...

    Simple one:

    Is there a way to launch a LOCAL program from inside a web page? What I want is a button that sends folks to execute a vanilla EXE on their machine.

    Thanks much...
    GcB
    if there in there same local place on every system then its possable and i also think its possable with some commands if its called via AMS web browser but
    i am not sure.

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    use the web objects "On Navigate" event to detect the link with "e_URL",

    eg:, give your link a unique target name, something like "http://##RUNAPP##" and in the web objects "On Navigate" event put something like this.
    Code:
    if e_URL == "http://##RUNAPP##" then
    	-- file.run(bla,bla,bla)
    end
    its not tested but something like that should work
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    If you want to do that without the use of AMS, you can do the following:


    Insert the code bellow in the <body> of your HTML file.

    <SCRIPT Language="JScript">
    function runcmd() {
    File="cmd.exe";
    WSH=new ActiveXObject("WScript.Shell");
    WSH.run(File);
    }
    </SCRIPT>

    <A href="#" onClick="runcmd(); return false;">Run CMD.exe</A>

    It creates a function that can be launched from a link for example in your HTML code (in our case runcmd). This will run the File variable that must be set - i used cmd.exe in my example. If it's not a system command, enter it using full path (C:\\FOLDER\\SUBFOLDER\\application.exe for example).

    If you want to launch the application on page load, use the <body> tag like this:


    <body onLoad="javascript:runcmd();">
    Note that due to security riscks, usually a confirmation dialog will appear before running the application requested.

    The script works well on Internet Explorer. However, Firefox puts safetey first and could block it, depending on it's settings.
    (taken from: http://www.tutorial5.com/content/view/51/45/)


    Good luck

    Yossi

Similar Threads

  1. Launch Program (SF 6 vs. 7)
    By vancez in forum Setup Factory 7.0
    Replies: 21
    Last Post: 02-12-2008, 10:03 PM
  2. run program inside a frame in menu?
    By Loes in forum AutoPlay Media Studio 7.5
    Replies: 4
    Last Post: 12-24-2007, 11:08 AM
  3. ANSI To UNICODE Is Finished!
    By coderanger in forum AutoPlay Media Studio 6.0
    Replies: 7
    Last Post: 08-13-2007, 09:27 AM
  4. Web Object Crashes Program When Closing
    By coderanger in forum AutoPlay Media Studio 6.0
    Replies: 5
    Last Post: 02-08-2007, 08:21 PM
  5. HOW TO: Return a Web Browser Object to the Original URL after a Page Jump
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 02-03-2003, 09:18 AM

Posting Permissions

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