Milkmannetje Posted June 11, 2007 Share Posted June 11, 2007 I want to automate a internet proxy change job. I have this: Run("control inetcpl.cpl") WinWaitActive("Internet Properties") ControlCommand("Internet Properties", "", SysTabControl32, "TabRight", "") But the function I want is in another TAB. I have no idea how the ControlCommand works... Link to comment Share on other sites More sharing options...
star2 Posted June 11, 2007 Share Posted June 11, 2007 check my example for proxy changingfrom here [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
Milkmannetje Posted June 11, 2007 Author Share Posted June 11, 2007 check my example for proxy changingfrom hereThanks a lot, but I prefer just a little script to switch the standard proxy on and off...Don't you know the solution for changing TABs? Link to comment Share on other sites More sharing options...
star2 Posted June 11, 2007 Share Posted June 11, 2007 try this Run("control inetcpl.cpl") WinWaitActive("Internet Properties") Send("^{TAB 4}") [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
FreeFry Posted June 11, 2007 Share Posted June 11, 2007 Ctrl+Tab switches tabs in the active window forward, Ctrl+Shift+Tab switches backwards. Link to comment Share on other sites More sharing options...
Milkmannetje Posted June 11, 2007 Author Share Posted June 11, 2007 Ctrl+Tab switches tabs in the active window forward, Ctrl+Shift+Tab switches backwards. Allright, thanks.Just one question.Can't I trigger a TAB on the name of it?Such as: Click TAB with name Settings?This is because sometimes the default order changes.But thanks for everything! Link to comment Share on other sites More sharing options...
FreeFry Posted June 11, 2007 Share Posted June 11, 2007 There's an even easier way to get right to the tab you want: Run("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,Internet,4") Though, I think if you could switch it with a com object it should be even easier... I can't look it up now, as I'm at work right now.. Link to comment Share on other sites More sharing options...
Milkmannetje Posted June 11, 2007 Author Share Posted June 11, 2007 There's an even easier way to get right to the tab you want: Run("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,Internet,4") Though, I think if you could switch it with a com object it should be even easier... I can't look it up now, as I'm at work right now.. Allright, thanks for your help. I don't have that much experience yet... I fabricated this now, and this works OK Run("control inetcpl.cpl,,4") WinWaitActive("Internet Properties") Send("!l") WinWaitActive("Local Area Network (LAN) Settings") Send("!x") Send("{ENTER}") WinWaitActive("Internet Properties") ControlClick("Internet Properties", "OK", "Button11") Link to comment Share on other sites More sharing options...
FreeFry Posted June 11, 2007 Share Posted June 11, 2007 (edited) Try this one Run("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,Internet,4") WinWaitActive("Internet Properties") ControlClick("Internet Properties", "", "Button13") WinWaitActive("Local Area Network (LAN) Settings") ControlCommand("Local Area Network (LAN) Settings", "", "Button6", "Check", "") ControlSetText("Local Area Network (LAN) Settings", "", "Edit2", "127.0.0.1") ControlSetText("Local Area Network (LAN) Settings", "", "Edit3", "1234") ControlClick("Internet Properties", "", "Button14") I think that should work for you without problems Edited June 11, 2007 by FreeFry Link to comment Share on other sites More sharing options...
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