| View previous topic :: View next topic |
| Author |
Message |
msplayas Advanced Cheater
Reputation: 0
Joined: 01 May 2007 Posts: 59 Location: Wausau, WI
|
Posted: Mon Sep 22, 2008 8:25 pm Post subject: [Help] Designing Web Browser |
|
|
I made a simple web browser program in VB and would like to add a socks proxy feature to it. Since I have just started VB I wouldn't know where to begin. I'm not looking for spoon feeding, but rather just an insight as to how a person would go about doing this. (My school's Lan Settings are locked for IE and Mozilla and there web site filter is on the server, which is the newly locked default for the Lan settings.) Any help would be appreciated plus credits for whomever shows me how.
_________________
|
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Mon Sep 22, 2008 10:11 pm Post subject: |
|
|
I would probably just add a shortcut to proxy.org in the browser.
OR, you could go about creating a proxy (or use Mychilli's on mi-ban.net) and activate a searchbar.text into the proxy site, sorta like making a google search engine but not google.
I think.
This is completely theoretical.
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Tue Sep 23, 2008 1:06 am Post subject: |
|
|
Your internet explorer browser thats used in VB6 reflects your computer's internet explorer browser.
So if you change socks in your internet explorer your vb6 one will change too..
Now what you are asking to do is not impossible but will require a few SendMessages() get a pattern of messages using Spy++ on internet explorer like a message to click Tools a message to click Internet Options..
when your program is complete it will have to be a hybrid of a internet explorer opened out side it and inside it.. which pretty much will be a hard looking setup..
Haha don't worry it won't be a Hybrid I found a way to do.. since it reads proxy settings of registry your in luck all you gotta do is edit registry settings. Here is a complete proxy using method
| Code: |
Private Sub ChangeIESettings(ByVal strProxy As String, ByVal enable As Boolean)
dim RegKey
Set RegKey = CreateObject("WScript.Shell")
' to enable and set proxy in IE to variable strProxy
' the string is in format 'IPofProxy:port' --> '192.168.1.1:8080'
' or 'NAMEofProxy:port' --> 'proxyserver.com:8080'
' and enable variable is true
' to disable use of proxy, set enable to false
If enable = True Then
sf.RegWrite "HKEY_CURRENT_CONFIG\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer", strProxy
sf.RegWrite "HKEY_CURRENT_CONFIG\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1
Else
sf.RegWrite "HKEY_CURRENT_CONFIG\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0
End If
End Sub
|
_________________
|
|
| Back to top |
|
 |
msplayas Advanced Cheater
Reputation: 0
Joined: 01 May 2007 Posts: 59 Location: Wausau, WI
|
Posted: Wed Sep 24, 2008 5:34 pm Post subject: |
|
|
So, how do you implement this script into a Windows Application?
I am using Visual Studios 2005 and it gives me an error with "sf."
What I am trying to accomplish is to make a Check Box that when
clicked enables use of a socks 5 proxy that I have placed as a
variable in my program.
_________________
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Thu Sep 25, 2008 6:29 pm Post subject: |
|
|
oh sf has to be RegKey
RegKey.RegWrite..
etc..
but idk if it will work in VB 2005.. its made for vb6 maybe i could find one for VB.NET 2005 as well
found one..
| Code: |
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", 1)
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "proxy.proxyserver.com:8080")
|
_________________
|
|
| Back to top |
|
 |
|