Jump to content
Sign in to follow this  
Milkmannetje

TAB through a window?

Recommended Posts

Milkmannetje

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

Share this post


Link to post
Share on other sites
star2

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]

Share this post


Link to post
Share on other sites
Milkmannetje

check my example for proxy changing

from here

Thanks 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?

Share this post


Link to post
Share on other sites
star2

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]

Share this post


Link to post
Share on other sites
FreeFry

Ctrl+Tab switches tabs in the active window forward, Ctrl+Shift+Tab switches backwards. :)

Share this post


Link to post
Share on other sites
Milkmannetje

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!

Share this post


Link to post
Share on other sites
FreeFry

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

Share this post


Link to post
Share on other sites
Milkmannetje

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")

Share this post


Link to post
Share on other sites
FreeFry

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×