|
-
Feb 22nd, 2002, 05:11 PM
#1
Change startpage on my browser?
How do I change startpage on my browser Internet Explorer, with a code?
-
Feb 22nd, 2002, 05:19 PM
#2
1. Tools->Internet Options->General ......the first textbox
or did I mis-read the question?
-
Feb 22nd, 2002, 05:39 PM
#3
Fanatic Member
Windows Registry
You find the start page in the Windows Registry (Windows 98 machine) -- in
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
Set the Start Page key's value to "www.yahoo.com" or whatever you want to start with.
Notice that the above affects the current user. You can also set it for default users in
HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Main
Depending on your operating systems and whether or not you have user profiles etc. etc. you may need to modify different keys. Read up on the Windows registry (if there is any such info anywhere), moneky areound with it, but please make a backup copy before you begin -- just in case.
ANYWAY -- to write to the key in code, either use the Windows API functions (they are documented countless times on this site). OR, create a text file called MyIEStartPage.reg and put the following into it:
Code:
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="http://www.yahoo.com/"
Then use the ShellExecute API call to "double click" your REG file from within VB code. This will "merge" the data above into the registry and overwrite whatever value is there beforehand. THEREFORE, make a backup copy of that reg-key, so you can undo your action later.
Again, the ShellExecute function is explained numerous times on this site, so search for it, and though shall find.
Hope I am pointing you in the right direction(s). Just suggesting two different ways.
Last edited by HaxSoft; Feb 22nd, 2002 at 05:43 PM.
-
Feb 22nd, 2002, 05:47 PM
#4
Frenzied Member
and if you do it w/ the reg file, you can use basic file handling to create that file dynamically, then you can use the kill statement to delete it when your done...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Feb 22nd, 2002, 05:49 PM
#5
Fanatic Member
AND restore the user's previous value IF so desired. BACKUP COPY remember?
-
Feb 22nd, 2002, 05:51 PM
#6
Frenzied Member
or, you could always use api to get the setting, write it to a reg file, and give the user an option to use their old value and just shellexecute to the reg file created w/ the original in it...
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
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
|