|
-
Jun 19th, 2000, 03:17 PM
#1
Thread Starter
Hyperactive Member
Hi there! 
How can I set the default home page of the browser(Both Netscape and IE)? Even if the user set it to their own home page, that should be overriden by mine in the next instance of the browser. I know this is something to do with the registry, but I dont know where in registry.
One more related question-> How to start one more instance of the browser automatically, when the browser is started?
Please help me.
Jeba.
-
Jun 19th, 2000, 04:33 PM
#2
Junior Member
reg info
HKEY_CUURENT_USER\Software\microsoft\internet explorer\Main\Start Page
thats the registry entry but i'm sure theres an easier way to do it...probably some api call...
and to open another instance u should just pop up a new window with some asp code....
i'm guessing its asp
-
Jun 19th, 2000, 05:05 PM
#3
Thread Starter
Hyperactive Member
well, can I when an app starts?
Hi there!
Thanx for the info okiedokie! 
Well, Cant I know when an app is launched, so that I can use my program to start another instance of that app?
Please help.
Jeba.
[Edited by jeba on 06-20-2000 at 06:08 AM]
-
Jul 7th, 2000, 11:26 PM
#4
Can you reword that, I don't quite understand what you are trying to do.
Code:
'Only allow one instance of your project
If App.PrevInstance Then End
-
Jul 7th, 2000, 11:36 PM
#5
Sorry...
Oh, I think I know what you are trying to do. See if a window is loaded and if it is, than you want to start another one.
Code:
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Dim winHwnd As Long
winHwnd = FindWindow(vbNullString, "Title of Program")
If winHwnd <> 1 Then
Shell "c:\browser.exe", vbnormalfocus
End If
-
Jul 8th, 2000, 12:03 AM
#6
Thread Starter
Hyperactive Member
Thanx..
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
|