Results 1 to 12 of 12

Thread: starting a vb-application, by starting another programm

  1. #1
    Guest

    Question

    Hello professionals,
    I have written a small, but quite good application in VB and I want it to start automaticly, when the user is starting another programm, like InternetExplorer or NetscapeNavigator. My is question: How can I achieve that?

    Thanks in advance
    and please send my a mail!

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    re:

    Do you mean start a specific program when someone enters a url in IE or Netscape?

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I was thinkihg about that one too, but wasn't able to find out a VB solution for it, so I decided to do it the other way 'round

    I created a shortcut, and in my VB program I used shell to execute the other prog, so it's basicly the same, when you're app is run, the other is fired up too (would be the same as when the other app is run, your prog is run too)

    not the most ideal solution, but it works.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    re:

    Well I figured out how to do it with IE but I still have yet to figure out Netscape.

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Cool how did you do it then? (is it a popupkiller? )
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    re:

    All it is , is a registry setting . So if I want to put in say:

    test://111.1.1.1 (just like telnet:// does)
    as a url. It will open a specified program. Here is what the registry file with an example.
    The @'s are the Default value.

    REGEDIT4

    [HKEY_CLASSES_ROOT\test]
    @="URL:test Protocol"
    "URL Protocol"=""

    [HKEY_CLASSES_ROOT\test\shell]

    [HKEY_CLASSES_ROOT\test\shell\open]

    [HKEY_CLASSES_ROOT\test\shell\open\command]
    @="c:\\proj\\test\\test.exe %1"



  7. #7
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    re:

    Now if I can just figure out how to have it work with Netscape!

  8. #8
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    So if you insert those in your registry your prog get started when a html file is opened in IE?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  9. #9
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    re:

    If you open it wiht thge prefix that you register

    (in the case I showed above)
    in IE if you type test://mysite.com/index.html

    it will open that site but it will also open the program you specified in the registry setting. it also works if you click a link with that prefix. Also if you notice the %1 i put after the program to run, that passes the url to the program as a commandline parmater so if you need that you can pull it out with the command function.




  10. #10
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Damn Chander, that's some pretty cool stuff, I think I'll write a prog with it thanx man, sounds awesome!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  11. #11
    Guest

    Thumbs down

    Quite nice thoughts, BUT
    I actually thought of simply starting my application when the users is starting IE, NN or any other programm, without
    calling an URL or doing something else.

  12. #12
    Addicted Member
    Join Date
    Aug 2000
    Posts
    208
    I have a solution :

    Start your program with windows and hide it ..
    Now, reverse what you want to do:
    When the Iexplorer open, your program detect it and
    put himself visible or I dont know what U want to do ..

    The code to do that is a little bit hard so if my solution
    seem to be a good one, gime your e-mail adress and I'll send
    you and exemple..

Posting Permissions

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



Click Here to Expand Forum to Full Width