Welcome Guest.   Make a donation to an author on the site May 25, 2013, 08:37:06 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the Practical Guide to DonationCoder.com Forum Search Features
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: turn IE proxy server on/off  (Read 6822 times)
williamhdixon
Participant
*
Posts: 4

View Profile Give some DonationCredits to this forum member
« on: March 02, 2012, 02:25:56 PM »

When connected to the network at my client site, I have to define a proxy server.  At home, I do not.

To turn the proxy server option on/off, I go to:
     Start / Control Panel / Internet Options / Connections tab / LAN Settings button
Then I select/deselect "Use a proxy server for your LAN".

The proxy server address stays when you deselect it, thank goodness, so I don't have to enter it every time.
Nothing changes between home and client site except for that one selection box.

Could someone help me out with something that would automate this?  Ideally, it would:
  • load itself into the system tray
  • indicate by color or something whether the proxy setting was checked or unchecked
  • change the setting (and icon color) when you click the icon
  • run under Windows 7 (what I use) or Windows XP (what a co-worker uses)

This way, instead of pulling up the IE options screen each and every morning, I could just glance into the system tray, look at the color of the icon, and click it if it isn't set the way I need it that day.

Is this possible?  Anyone willing to help me out?

Thanks,
Bill
Logged
Ath
Supporting Member
**
Posts: 1,965



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: March 02, 2012, 02:42:59 PM »

A few options are already available:

A couple of non-free tools: NetSwitcher, Mobile NetSwitch, Easy NetSwitch

Or a bit awkward/obtrusive but free Italian tool called JimiIP (sunglasses on, terrible website too Cool)
Logged

Carol Haynes
Waffles for England (patent pending)
Global Moderator
*****
Posts: 7,818



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: March 02, 2012, 03:42:01 PM »

The other approach is to use Firefox in one location and IE In the other - they can have independent proxies.
Logged



[ may-june 2013 ad experiment; click here to learn more about donationcoder.com ]

williamhdixon
Participant
*
Posts: 4

View Profile Give some DonationCredits to this forum member
« Reply #3 on: March 02, 2012, 03:47:06 PM »

Ath - Thanks for the pointers, but those are WAY more complicated than I'm looking for.  They set things like default printer, etc.  All I want/need to do is to turn the "Use a proxy server" option on or off.  And since that's all I need to do, I'm afraid it would be more of a hassle to use those tools than to simply go to Internet Options like I've been doing.

Carol - Thanks, but the browser is immaterial.  Specifically, if I hit the Internet from home in the evening (which means the proxy setting is deselected) but forget to change it when I get to the client site the next morning, the VPN software I use won't make a connection.  I don't use a browser that much in the office (except to search for things like this).  Besides which, I hate IE.

BTW - I've tried manually changing the registry setting, based on some tips I've found on the internet.  If I could get this working, I could create shortcuts with the commands, or put them in a batch file, or even write a perl wrapper around them.

If I run:
REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -v ProxyEnable
it does shows me the current state of the option, no matter how often I change it in the Internet Options screen.

If I run:
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /t REG_DWORD /v ProxyEnable /d 0x0 /f
REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -v ProxyEnable
it *says* it changed it.

But it didn't.  If I go into Internet Options, it still has the old value.
Logged
skwire
Moderator
*****
Posts: 3,450



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: March 02, 2012, 04:40:54 PM »

Hi, William, and welcome to the site.  I wrote a program at my last job that does half of what you want.  I called it ProxyKiller so I'm sure you can guess which half.   I'll see about fleshing it out to cover your needs.  Stay tuned.
Logged

skwire
Moderator
*****
Posts: 3,450



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: March 02, 2012, 08:37:53 PM »

Give this a try:  IE Proxy Toggle

Green icon means the proxy is enabled; a grey icon means disabled.  Single-click the tray icon to toggle or use the right-click menu.  Tested on XPSP3/32 and W7/64.

« Last Edit: March 02, 2012, 10:29:05 PM by skwire; Reason: Added screenshot » Logged

williamhdixon
Participant
*
Posts: 4

View Profile Give some DonationCredits to this forum member
« Reply #6 on: March 03, 2012, 02:08:49 PM »

skwire - PERFECT!!

I can't give it a full test until I go into the office next Tuesday (that's where the proxy server has to be set in order to get past their firewall), but from the testing I can do at home, I don't see any reason why it won't work.  This was exactly what I envisioned.

Thanks a million.
Logged
skwire
Moderator
*****
Posts: 3,450



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: March 03, 2012, 02:24:51 PM »

You're very welcome.   smiley  Glad I could help.

Please let us know how it functions from your workplace.  If it passes muster there, I'll release this application on my website as I feel others could get some use out of it.
Logged

williamhdixon
Participant
*
Posts: 4

View Profile Give some DonationCredits to this forum member
« Reply #8 on: March 06, 2012, 10:35:16 AM »

It works perfectly, both from home and from the office.  Thanks.

BTW - The reason this is such a big deal for me right now is that there's a bug with our VPN software, under Win7, when connected to the client's network.  The proxy server has to be selected for the software to establish connection back to my company's network, but after the VPN makes a connection, it dies in about a half a minute.  Someone here figured out (how, I have no idea) that if the proxy is selected when you launch the VPN software, but then you deselect it after the connection is established but before it is dropped, then re-select it after a minute or so and the VPN tunnel is stable, it works.  Needless to say, being able to click an icon in the system tray is much less of a hassle.)

Again, thanks.  You are going to be several people's hero.
Logged
skwire
Moderator
*****
Posts: 3,450



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: March 06, 2012, 10:57:55 AM »

Fantastic.  Thanks for reporting back.   cheesy
Logged

skwire
Moderator
*****
Posts: 3,450



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #10 on: March 06, 2012, 12:35:30 PM »

Here's the official site for the application:

http://skwire.dcmembers.c.../fp/?page=ie-proxy-toggle
Logged

skwire
Moderator
*****
Posts: 3,450



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #11 on: July 29, 2012, 05:45:29 PM »

Website | Download
v1.0.1 - 2012-07-29
    + Added commandline mode.  Examples:
        1) c:\path\to\ieproxytoggle.exe -on
        2) c:\path\to\ieproxytoggle.exe -off
        3) c:\path\to\ieproxytoggle.exe -toggle
Logged

skwire
Moderator
*****
Posts: 3,450



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: January 15, 2013, 09:18:07 PM »

Website | Download
v1.0.2 - 2013-01-15
    + Added ability to set a hotkey to toggle the proxy.  (Thanks, Diego)
    + Added update checking in the tray menu.
Logged

Josh72
Participant
*
Posts: 1

View Profile Give some DonationCredits to this forum member
« Reply #13 on: May 23, 2013, 05:05:46 PM »

Can I get the code for this to alter it some my company uses automatic script config I want it to check and uncheck that instead of proxy server.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  



[ may-june 2013 ad experiment; click here to learn more about donationcoder.com ]


 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.041s | Server load: 0.04 ]