|
-
Dec 28th, 2000, 01:04 PM
#1
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!
-
Dec 28th, 2000, 01:06 PM
#2
re:
Do you mean start a specific program when someone enters a url in IE or Netscape?
-
Dec 28th, 2000, 04:06 PM
#3
Frenzied Member
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.
-
Dec 29th, 2000, 09:54 AM
#4
re:
Well I figured out how to do it with IE but I still have yet to figure out Netscape.
-
Dec 29th, 2000, 11:37 AM
#5
Frenzied Member
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.
-
Dec 29th, 2000, 11:42 AM
#6
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"
-
Dec 29th, 2000, 11:45 AM
#7
re:
Now if I can just figure out how to have it work with Netscape!
-
Dec 29th, 2000, 12:12 PM
#8
Frenzied Member
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.
-
Dec 29th, 2000, 12:21 PM
#9
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.
-
Dec 29th, 2000, 05:35 PM
#10
Frenzied Member
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.
-
Dec 30th, 2000, 12:02 PM
#11
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.
-
Dec 30th, 2000, 01:38 PM
#12
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|