+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 23
Coding Thread, Proxy Switch - Change proxy settings at the click of a button in Coding and Web Development; Just wanted to let everyone know about a project I've been working on for a week now. I guess the ...
  1. #1
    painejake's Avatar
    Join Date
    Jan 2009
    Location
    Birmingham
    Posts
    100
    Thank Post
    38
    Thanked 8 Times in 8 Posts
    Rep Power
    14

    Proxy Switch - Change proxy settings at the click of a button

    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.... )

  2. #2
    painejake's Avatar
    Join Date
    Jan 2009
    Location
    Birmingham
    Posts
    100
    Thank Post
    38
    Thanked 8 Times in 8 Posts
    Rep Power
    14
    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!

  3. #3
    alonebfg's Avatar
    Join Date
    Aug 2006
    Location
    south west some of the time
    Posts
    834
    Thank Post
    12
    Thanked 34 Times in 21 Posts
    Blog Entries
    5
    Rep Power
    24
    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.

  4. #4
    painejake's Avatar
    Join Date
    Jan 2009
    Location
    Birmingham
    Posts
    100
    Thank Post
    38
    Thanked 8 Times in 8 Posts
    Rep Power
    14
    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.

  5. #5
    painejake's Avatar
    Join Date
    Jan 2009
    Location
    Birmingham
    Posts
    100
    Thank Post
    38
    Thanked 8 Times in 8 Posts
    Rep Power
    14
    First release is complete.

    More Information: About Proxy Switch | Proxy Switch
    Download: Proxy Switch RC1 | Proxy Switch

  6. #6
    alonebfg's Avatar
    Join Date
    Aug 2006
    Location
    south west some of the time
    Posts
    834
    Thank Post
    12
    Thanked 34 Times in 21 Posts
    Blog Entries
    5
    Rep Power
    24
    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)

  7. #7
    tsimons's Avatar
    Join Date
    Jul 2009
    Location
    Billericay, Essex
    Posts
    22
    Thank Post
    2
    Thanked 4 Times in 4 Posts
    Rep Power
    11
    Absolutely perfect..
    Exactly what i was looking for, nice a lightweight, easy to use.

    Good job painejake!

  8. #8
    painejake's Avatar
    Join Date
    Jan 2009
    Location
    Birmingham
    Posts
    100
    Thank Post
    38
    Thanked 8 Times in 8 Posts
    Rep Power
    14
    @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
    Last edited by painejake; 11th May 2010 at 10:50 AM.

  9. #9
    painejake's Avatar
    Join Date
    Jan 2009
    Location
    Birmingham
    Posts
    100
    Thank Post
    38
    Thanked 8 Times in 8 Posts
    Rep Power
    14
    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

  10. #10
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25
    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

  11. #11

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740
    Quote Originally Posted by p-dave View Post
    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.....

    Code:
    ; 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@Email.com")
    
    	EndSelect
    
    	Switch $nMsg
    
    		Case $GUI_EVENT_CLOSE
    
    			Exit
    
    	EndSwitch
    
    WEnd

  12. #12
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25
    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?

  13. #13

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740
    Quote Originally Posted by p-dave View Post
    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.

  14. #14

    Join Date
    Feb 2007
    Posts
    329
    Thank Post
    158
    Thanked 27 Times in 24 Posts
    Rep Power
    36
    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?

  15. #15
    jsnetman's Avatar
    Join Date
    Oct 2007
    Posts
    887
    Thank Post
    23
    Thanked 134 Times in 126 Posts
    Rep Power
    39
    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.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Ranger - Change Proxy Settings
    By vlan2 in forum Network and Classroom Management
    Replies: 2
    Last Post: 13th September 2009, 11:05 PM
  2. MSN proxy settings
    By mrbios in forum General Chat
    Replies: 4
    Last Post: 25th February 2009, 11:16 PM
  3. Configured Proxy Settings
    By OutLawTorn in forum How do you do....it?
    Replies: 8
    Last Post: 27th May 2008, 11:46 PM
  4. Proxy switch "proxy on" & " proxy off" software
    By GavRob in forum Network and Classroom Management
    Replies: 20
    Last Post: 30th July 2007, 10:05 PM
  5. Proxy Settings
    By Jonny_sims in forum Windows
    Replies: 19
    Last Post: 25th May 2007, 07:12 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •