Jump to content

Recommended Posts

Posted

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

Posted

check my example for proxy changing

from 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]

Posted

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]

Posted

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!

Posted

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

Posted

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")
Posted (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 by FreeFry

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...