painejake Posted May 1, 2010 Posted May 1, 2010 Just wanted to let everyone know about a project I've been working on for a week now. I guess the best way of you getting more information is by visiting the website I smacked up for it quickly here: Proxy Switch Quite excited about the project as its my first project of this sort and my first program (or time using..) C# and .NET 4. Although there isn't a release just yet wanted to get some feedback really on if people (other than the school I work at) would be interested in using something like this. Can't wait to hear what you guys think about it (Have a good bank holiday weekend too and I hope this doesn't sound like a sales pitch.... )
painejake Posted May 3, 2010 Author Posted May 3, 2010 Just an update. I have registered a domain for the project. The website can now be accessed via Proxy Switch Should also be the first release this week!
alonebfg Posted May 4, 2010 Posted May 4, 2010 If it just switches the proxy on and off there is already loads out there that do that one that was done on the website many years ago the problem is switching proxys on the fly IE from proxy.school.net to proxy.staff.net as in windows vista and 7 you ned a restart for the change to take affect if you are doing it via a registry input.
painejake Posted May 4, 2010 Author Posted May 4, 2010 The global internet settings are refreshed on the fly using InternetSetOption calls As long as the browser is set to use system proxy settings then it works in every browser.
painejake Posted May 6, 2010 Author Posted May 6, 2010 First release is complete. More Information: About Proxy Switch | Proxy Switch Download: Proxy Switch RC1 | Proxy Switch
alonebfg Posted May 10, 2010 Posted May 10, 2010 The big issue for us is the fact our staff need to change proxys not just switch it on and off they can do that by clicking the box but to change proxys is a diffrent matter as they struggle to rember the name of them and also the fact the need to be pointed to a website to log in if they select the staff proxy (is an rm thing)
tsimons Posted May 11, 2010 Posted May 11, 2010 Absolutely perfect.. Exactly what i was looking for, nice a lightweight, easy to use. Good job painejake!
painejake Posted May 11, 2010 Author Posted May 11, 2010 (edited) @alonebfg This probably isn't what you need then. If would be very easy to tweak the Main form to add a ComboBox that can support multiple proxy addresses. and thanks tsimons Edited May 11, 2010 by painejake
painejake Posted May 22, 2010 Author Posted May 22, 2010 Proxy Switch 1.1.0.45 has been released. This is a final version. If you are running the RC1 it will prompt you to update. This version has a installer however you will need to configure the Config.prsw still. The program now requires .NET 3.5 until a .NET 4.0 msi is available easily to everyone. All feedback is good feedback Source can be found here: painejake / Proxy Switch / source — bitbucket.org More info: Proxy Switch
pritchardavid Posted May 23, 2010 Posted May 23, 2010 Could you create one that doesnt stay running? Ie cick on the shorcut and you then can press 'turn on proxy' or 'turn off proxy' Used to have one made by autoit v3. But I needed to change the proxy settings, and could never seem to be able to remake it, kept coming up with errors
mattx Posted May 23, 2010 Posted May 23, 2010 Could you create one that doesnt stay running? Ie cick on the shorcut and you then can press 'turn on proxy' or 'turn off proxy' Used to have one made by autoit v3. But I needed to change the proxy settings, and could never seem to be able to remake it, kept coming up with errors You mean similar to this ? Edit to your requirements..... ; AutoIt Version: 3.2.0.1 ; Language: English ; Platform: WinXP ; Author: Matt ; Script Function: Proxy Switcher ; Version: 1.0 ; Date: Sept 2009 #include #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Proxy Switcher", 220, 110, 348, 309) $helpmenu = GUICtrlCreateMenu("Help") $infoitem = GUICtrlCreateMenuItem("About", $helpmenu) GUISetBkColor(0x0066FF) $Button1 = GUICtrlCreateButton("Proxy On", 10, 20, 89, 49) $Button2 = GUICtrlCreateButton("Proxy Off", 120, 20, 89, 49) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $Button1 RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "First Home Page", "REG_SZ", "http://navaho") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", "REG_SZ", "http://navaho") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ", "10.0.0.2:8080") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "Proxyenable", "REG_DWORD", "1") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyOverride", "REG_SZ", "intranet") Run('C:\Program Files\Internet Explorer\iexplore.exe') Exit Case $nMsg = $Button2 RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "First Home Page", "REG_SZ", "http://www.google.co.uk") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", "REG_SZ", "http://www.google.co.uk") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "Proxyenable", "REG_DWORD", "0") Run('C:\Program Files\Internet Explorer\iexplore.exe') Exit Case $nMsg = $infoitem MsgBox(0, "Proxy Switcher 1.0", "Written By Matt" & @CRLF & "Comments & Suggestions to:" & @CRLF & "[email protected]") EndSelect Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
pritchardavid Posted May 23, 2010 Posted May 23, 2010 yer that was it made thanks I'll have another go, but last time it wouldnt save it, saying something is invaild Could that be due do a newer version of autoit?
mattx Posted May 23, 2010 Posted May 23, 2010 yer that was it made thanks I'll have another go, but last time it wouldnt save it, saying something is invaild Could that be due do a newer version of autoit? Possibly - try it and let me know what error message you get.
Gardinho Posted May 25, 2010 Posted May 25, 2010 We currently use CLEO's NED box. The proxy server box remains unticked, but use an automatic configuration scipt is ticked with settings added. Does this neat little app remove that too?
jsnetman Posted May 25, 2010 Posted May 25, 2010 We uase automatically detect proxy in school using a combination of DNS and ISA server, so when staff take laptops home this setting is what is needed to detect home ISP proxies, so no user interaction is required. Rather than asking your staff to change proxy settings it would be more preferable for you to investigate setting up auto proxy detection as there are several methods to acomplish this. Nice little app though.
Grazza Posted June 22, 2010 Posted June 22, 2010 I have writen a Proxy changer software in Visual Basic 6. We put it on all our 6th for Laptops and then removed the connections tab from the IE Settings. When a member of staff or a student log's on it runs proxy changer and asks if they are at school or at home and then set's up the proxy settings. The staff LOVE IT and it saves them going in and ticking/ unticking the settings. It also stops them bypassing the schools filtered internet since the proxy is hard coded into the software. Customised copies for your school going for £10, just let me know Name of school and Proxy settings Regards Graham Just wanted to let everyone know about a project I've been working on for a week now. I guess the best way of you getting more information is by visiting the website I smacked up for it quickly here: Proxy Switch Quite excited about the project as its my first project of this sort and my first program (or time using..) C# and .NET 4. Although there isn't a release just yet wanted to get some feedback really on if people (other than the school I work at) would be interested in using something like this. Can't wait to hear what you guys think about it (Have a good bank holiday weekend too and I hope this doesn't sound like a sales pitch.... )
painejake Posted June 22, 2010 Author Posted June 22, 2010 Excuse me this is my Proxy Switch thread. If people want to use the Proxy Switch in the original post, It along with the source can be downloaded for FREE here: Linky
Grazza Posted June 22, 2010 Posted June 22, 2010 Very Sorry, was just letting you know I have done the same. I have look at yours and It's great. Ours serves a more specific purpose. We have two Proxies one filtered, one unfiltered. Our students found out the UnFiltered Proxy and was using it for all sorts. So I HARDCODED the proxy in, which is SPECIFIC to our school. Yours, and this is ment with no disrespect could still be altered by clever students to use whatever proxy they could find. It's still a great piece of coding very nice and easy sat the the system tray, you have to physically run mine. Sorry for intruding on your thread. Graham Excuse me this is my Proxy Switch thread. If people want to use the Proxy Switch in the original post, It along with the source can be downloaded for FREE here: Linky
sted Posted July 1, 2010 Posted July 1, 2010 just trying this on my win7x64 bos and it loads but gives the error "the remote name could not be resolved: proxyswitch.co.uk' " and if i edit the Config.prsw (even running the editor as administrator as i leave uac on) when i try and turn proxy on it tells me "the configuration file could not be found! please contact the sysadmin"
painejake Posted November 12, 2010 Author Posted November 12, 2010 (edited) I have been very busy lately but updated Proxy Switch to v1.2. The website has now moved onto Google Code and can be accessed here: https://code.google.com/p/proxyswitch/ (If a mod could update the original post with that link would be great!) It is now in a much 'better' form and runs a lot smoother. Any feedback is always appreciated. This will fix the issue you are having sted. Its OK Graham thanks for the apology. Edited November 12, 2010 by painejake
rlane Posted November 27, 2010 Posted November 27, 2010 I wrote something similar to this for my school that loads at startup on staff laptops only. Student have no need for it. Proxy settings are forced to our internal proxy via gpo and so the user doesnt need to change them. The useful part is when staff takes their laptops home where they can then select "Home" via right click on a task bar icon that clears the proxy settings. Settings are hard coded as is the additioanl "Unfiltered proxy" shown only to domain admins. Works well so far..
l15ard Posted January 11, 2011 Posted January 11, 2011 yer that was it made thanks I'll have another go, but last time it wouldnt save it, saying something is invaild Could that be due do a newer version of autoit? you'll have to put in some more includes of various types for buttons and the like, I've wrote a similar one where after filling in a form for user profiles server, proxy (which is encrypted), etc etc, if using on an RM network it'll map a drive to the users home directory (non presistant) and setting the proxy settings, all done by logging in with their network username.
Chunks_ Posted March 2, 2011 Posted March 2, 2011 to be honest i just use this code. If you want to remove the proxy from say a laptop when a user takes it home just add it in to the logoff script. and then let the gpo do the rest when its plugged back in.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now