DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: alias for toggle internet proxy  (Read 6,763 times)

wjamoe

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 99
    • Participated in NANY Challenge Once
    • Plugin Coding Medal
alias for toggle internet proxy
« on: July 29, 2012, 08:51 AM »
You might like this, it is a simple alias for toggling the internet proxy on/off

Quote
"%FARRDIR%\Scripts\Control Panel (cpanel)\Internet Options (cpanel).lnk";;;sendkeys {sleep 1500}+{TAB}{HOME}{RIGHT}{RIGHT}{RIGHT}{RIGHT}%l%x

it will show the new state .

if you want to reverse the state press {SPACE}

you now have to to press {ENTER} twice to commit the setting

assumptions:
  • this version only  works for english version of windows (Lan settings, proXy)
  • it only works if your system administrator did not disable the communication dialog (5th TAB)
  • there are no built in checks, to verify the above!

maybe you can modify it and upload a version for your language.

wiem
« Last Edit: July 30, 2012, 07:02 PM by wjamoe »

IainB

  • @Slartibartfarst
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
Re: alias for toggle internet proxy
« Reply #1 on: July 29, 2012, 01:11 PM »
@wjamoe: Thanks for that post. I don't need the alias (not yet, anyway), but it just taught me something about the simplicity of an alias in FARR.

Filipe Meira Castro

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 104
Re: alias for toggle internet proxy
« Reply #2 on: July 29, 2012, 08:19 PM »
Seems really nice, thanks for sharing :)

Unfortunatly it does not work in my computer (W7 32b, latest FARR), after troubleshooting found the window gets out of focus with the sleep command {sleep 1500}

Tried, offcourse, taking it out or increasing but it does not help..

If I just lauch the command and do the keys by myself then it works...

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: alias for toggle internet proxy
« Reply #3 on: July 29, 2012, 09:46 PM »
Filipe, it may be that you have an option set for FARR to grab focus. now whether you want to keep that or not i dont know.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: alias for toggle internet proxy
« Reply #4 on: July 29, 2012, 10:42 PM »
I just added a commandline mode to my IE Proxy Toggle application so that your alias can work more reliably across all languages.  Download the application, unpack it to a folder and you can call it in your alias like these examples:

c:\path\to\ieproxytoggle.exe -on
c:\path\to\ieproxytoggle.exe -off
c:\path\to\ieproxytoggle.exe -toggle

wjamoe

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 99
    • Participated in NANY Challenge Once
    • Plugin Coding Medal
Re: alias for toggle internet proxy
« Reply #5 on: July 30, 2012, 07:02 PM »
Skwire, I was looking for a small proxy toggle tool, but I couldn't find it. Thanks, I'm certainly going to use your program. :Thmbsup:

There is only a very small advantage of my alias over your exe, it will work out of the box.  ;) (most of the time)

Original address: https://www.donationcoder.com/forum/index.php?topic=31781.0