topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 5:30 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: alias for toggle internet proxy  (Read 4891 times)

wjamoe

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 99
    • View Profile
    • Donate to Member
alias for toggle internet proxy
« on: July 29, 2012, 03:51 AM »
You might like this, it is a simple alias for toggling the internet proxy on/off

"%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, 02:02 PM by wjamoe, Reason: (previous version contrained error!) »

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,540
  • @Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: alias for toggle internet proxy
« Reply #1 on: July 29, 2012, 08:11 AM »
@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
    • View Profile
    • Donate to Member
Re: alias for toggle internet proxy
« Reply #2 on: July 29, 2012, 03: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,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: alias for toggle internet proxy
« Reply #3 on: July 29, 2012, 04: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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: alias for toggle internet proxy
« Reply #4 on: July 29, 2012, 05: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
    • View Profile
    • Donate to Member
Re: alias for toggle internet proxy
« Reply #5 on: July 30, 2012, 02: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)