Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    New Coder
    Join Date
    Jan 2003
    Location
    USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Linking to a program so it opens instead of prompts to be saved

    Hiya, I'm currently playing with the idea of making a website for my computer (in other words, it'll be a more attractive interface than the typical desktop and will only be used for my computer). Now what I want to do is kinda do what a *.lnk file does in Windows. I want to be able to click a link to... let's say Paint Shop Pro, and have it open Paint Shop Pro automatically (rather than prompting to save or open the file). So basically, what I'm wondering is if there is any special code which will over-ride that prompt for a specific link so that I can just click and open. Ideally, I'd like my website to work in Opera (since it has a much more attractive full-screen mode than IE does) but if I have to, I'll settle for IE. But if anyone could help me out with this, I'd much appreciate it, thanks.
    ~KGP

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Location
    Bristol, UK
    Posts
    932
    Thanks
    0
    Thanked 0 Times in 0 Posts
    um... why not simply set your desktop wallpaper to be the webpage you are making...? (hence avoiding using a "browser" as such) and stick your normal desktop icons over the top.

    works for me!

    ::] krycek [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."

  • #3
    New Coder
    Join Date
    Jan 2003
    Location
    USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well I actually thought of that a few minutes. P But naw, I don't like the icons. I kinda want to do like a flash/shockwave site so I can have hiding toolbars and stuff (I wanna go all out with this so it makes a dramatic improvement over the desktop). But because of this, I just wanted to know if maybe there was a javascript or flash script or something that would open a local program or something.
    ~KGP

  • #4
    Regular Coder
    Join Date
    Jan 2003
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts
    go 2 www.stardock.com There is a program 4 around $40 that lets you completely customize everything. or you can download them one by one 4 free but lose a few features!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    unless you build your own browser or find a major hole in a browser and don't install a patch i doubt you can do it as browsers where made for the internet and websites.


    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #6
    Regular Coder
    Join Date
    Nov 2002
    Location
    Bristol, UK
    Posts
    932
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by l3vi
    go 2 www.stardock.com There is a program 4 around $40 that lets you completely customize everything. or you can download them one by one 4 free but lose a few features!
    I wouldn't recommend you use stardock stuff. The appeal tends to wane once you use their software and it grabs all your system resource! (And I am on a VERY powerful system)

    ::] krycek [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."

  • #7
    New Coder
    Join Date
    Jan 2003
    Location
    USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah, no kidding. Stardock stuff was really great, but that **** took my system down real fast. I couldn't stand the amount of resources it swallowed up, which is exactly why I've chosen not to use them anymore. And the thing with IE/the desktop is I figured the flash thing would work properly seeing as it is designed for both web and local use (IE and Explorer being essentially the same thing as it switches its own functions freely). So there's gotta be something that'd work, right? Now I've not tried this yet... but if I made a link to a *.lnk file, would IE/Desktop/Explorer prompt to save the file or would it just use the *.lnk file like it was local? Anyway... I'm thinking you all kinda get my basic idea by now, so if anyone has any ideas that would remove the nuisance of that save/open prompt when a file link is local, that'd be great.
    ~KGP

  • #8
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    I doubt you can. Mainly because if you could, then spyware and viruses could easily get onto your system. Its the same reason why you can't set a default value for the file upload form object.
    OracleGuy

  • #9
    New Coder
    Join Date
    Jan 2003
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This thread might be of interest to you...

  • #10
    New Coder
    Join Date
    Jan 2003
    Location
    USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes, that thread does a great job. I can probably tweak it a smidge to make it run exactly like I need it to. However, it requires DOS-Names and I've got Windows XP and when I do that properties thing for folders or files, there's no mention of a DOS name.... so where might I find the DOS name? File Manager had it, I think, but I can't find that program on WinXP (what's the file name for File Manager so I can do a search?) Anyway, thanks for that thread, 'cause that should work perfectly for what I need with a little tweaking. And if anyone knows where File Manager is or how to find the dos names of stuff, lemme know, thanks.
    ~KGP

  • #11
    New Coder
    Join Date
    Jan 2003
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have XP, and was able to open shortcuts with no problem, using an .hta...

    Here's what I did:

    1. create a folder for your shortcuts, such as "C:\shortcuts"

    2. right click, drag, and copy whatever shortcuts you want from your desktop into the "C:\shortcuts" folder

    3. create links to the shorcuts... for example: if my shorcut name was "paint", my link would be:

    <option value="C:\shortcuts\paint">paint</option>


    This is a test .hta that I used, with the code from the aforementioned thread:

    Code:
    <html>
    <HEAD>
    <TITLE>t e s t</TITLE>
    <HTA:APPLICATION ID="oMyApp" 
    APPLICATIONNAME="test"     
    ICON="blankicon.ico"
    SYSMENU="yes"
    MAXIMIZEBUTTON="yes"
    MINIMIZEBUTTON="yes"
    WINDOWSTATE="normal"
    NAVIGABLE="yes"
    SCROLLFLAT="yes"/>
    
    
    <script type="text/javascript">
    
    fso = new ActiveXObject("Scripting.FileSystemObject");
    
    function RunProgram(Program_Path) {
    Default_Value = Program_Path.match(new RegExp("Default", "i"))
    if (Default_Value) {
    } else {
    new ActiveXObject("WScript.Shell").Run(Program_Path,3,false)
    }}
    </script>
    </head>
    <body>
    
    <select onchange="RunProgram(this.value)">
    <option value="Default" selected>Launch Program</option>
    <option value="C:\shortcuts\notepad">notepad</option>
    <option value="C:\shortcuts\word">word</option>
    <option value="C:\shortcuts\paint">paint</option>
    </select>
    
    </body>
    </html>
    Last edited by F.N.G.; 03-18-2003 at 11:36 AM.

  • #12
    New Coder
    Join Date
    Jan 2003
    Location
    USA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    heh, I suppose that'd work, huh? :P And here I was tryin' to link straight to the program itself. Well that works, thanks a bunch Now I can begin working on my sexy-*** new desktop :P Thanks again, everyone, you've been tremendous help
    ~KGP

  • #13
    New Coder
    Join Date
    Jan 2003
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts
    LaunchinIE appears to be a nice alternative to using an html-application, just to avoid the security alert.

    I don't think there's any way to set an .hta as the desktop background...

  • #14
    Regular Coder
    Join Date
    Jun 2002
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just noticed this thread. I haven't used XP and was describing Win98. Glad you got it working. Here's an hta resource.

    http://msdn.microsoft.com/workshop/a...bjects/hta.asp

  • #15
    Regular Coder
    Join Date
    Jun 2002
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    And here is the possible opening properties (though I've only gotten a few of them to work)

    /*

    0 Hides the window and activates another window.
    1 Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
    2 Activates the window and displays it as a minimized window.
    3 Activates the window and displays it as a maximized window.
    4 Displays a window in its most recent size and position. The active window remains active.
    5 Activates the window and displays it in its current size and position.
    6 Minimizes the specified window and activates the next top-level window in the Z order.
    7 Displays the window as a minimized window. The active window remains active.
    8 Displays the window in its current state. The active window remains active.
    9 Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
    10 Sets the show-state based on the state of the program that started the application.

    */

    <edit>

    they go here:

    new ActiveXObject("WScript.Shell").Run(Program_Path,3,false)

    </edit>


  •  
    Page 1 of 3 123 LastLast

    Posting Permissions

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