1

I need to ensure that the "Use automatic configuration" checkbox is set to off before my script starts. Group policy keeps changing this.

How can I get into the "Internet Options" menu? It is not recording the click on the cog icon. The shortcut keys are Alt + x + o.

This is what I've tried:

Browser("NetStar Login").Dialog("Internet Options").WinTab("SysTabControl32").Select "Connections"
Browser("NetStar Login").Dialog("Internet Options").WinButton("LAN settings").Click
Browser("NetStar Login").Dialog("Internet Options").Dialog("Local Area Network (LAN)").WinCheckBox("Use automatic configuration").Set "OFF"
Browser("NetStar Login").Dialog("Internet Options").Dialog("Local Area Network (LAN)").WinButton("OK").Click
Browser("NetStar Login").Dialog("Internet Options").WinButton("OK").Click
1

Here is how I solved this. Would love to hear better solutions:

Set WshShell = CreateObject("WScript.Shell")

WshShell.SendKeys("+{TAB}") 'shift + tab
wait(1)
WshShell.SendKeys("{RIGHT}")'right arrow
wait(1)
WshShell.SendKeys("{RIGHT}")'right arrow
wait(1)
WshShell.SendKeys(Chr(13))  'enter
wait(1)
WshShell.SendKeys("o")      'o

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.