-
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!
-
re:
Do you mean start a specific program when someone enters a url in IE or Netscape?
-
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.
-
re:
Well I figured out how to do it with IE but I still have yet to figure out Netscape.
-
Cool how did you do it then? (is it a popupkiller? ;))
-
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"
-
re:
Now if I can just figure out how to have it work with Netscape!
-
So if you insert those in your registry your prog get started when a html file is opened in IE?
-
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.
-
Damn Chander, that's some pretty cool stuff, I think I'll write a prog with it ;) thanx man, sounds awesome!
-
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.
-
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..