Jump to content

Unable to click on the checkbox using Controltreeview command in Autoit


Arka
 Share

Recommended Posts

Unable to check the checkbox under IE settings,

>Internet Option>Advanced>first option

#include <IE.au3>
#include <GUIConstantsEx.au3>
#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>

$CMD = "inetcpl.cpl"
RunWait(@ComSpec & " /c " & $CMD);
WinWaitActive("[CLASS:#32770]");
ControlClick("Internet Properties", "Use de&fault", "[CLASS:Button;INSTANCE:2]", "");
Send("+{TAB 2}");
Send("+ {RIGHT 6}");
ControlTreeView ("Internet Options", "", "[CLASS:SysTreeView32; INSTANCE:1]", "check", "#0|#1" )

Unable to select the values inside IE advanced tool, So used Controltreeview. But using the above scripts unable to check the checkbox. I dont want to use "SEND" command.

Can someone please help me with this.Autoit issue.PNG

Edited by Arka
Link to comment
Share on other sites

Hey All,

One problem after implementing the above approach is:

Different OS like OS 7,8 has different regkey name. Please tell me if any other approach is available. It tooks lots of time to find a registry key for a advanced settings. 

Local $sVar = RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "UseSWRender", "REG_DWORD", "0x00000000")
Edited by Arka
Link to comment
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
 Share

×
×
  • Create New...