Jump to content
Arka

Unable to click on the checkbox using Controltreeview command in Autoit

Recommended Posts

Arka

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

Share this post


Link to post
Share on other sites
AutoBert

Also RunWait is blocking.

Edited by AutoBert

Share this post


Link to post
Share on other sites
Arka

Thanks for the reply. I will try the above. :)

Share this post


Link to post
Share on other sites
Arka

Did that using Regwrite. using below:

Local $sVar = RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "UseSWRender", "REG_DWORD", "0x00000000")

Working fine. :)

Share this post


Link to post
Share on other sites
Arka

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

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

  • Similar Content

    • santoshM
      By santoshM
      How can i exit from a procedure in auto
      Func test() if x=o then     return endif endFunc  
    • Valnurat
      By Valnurat
      Hi
      Small question.
      I trying to find all index in an array with value higher than 7.
      How can that be possible?
    • TrashBoat
      By TrashBoat
      Could someone help me create or give an idea of how to do a incrementing for loop that would do this: https://i.imgur.com/YFUt47H.gifv
      I'm having a hard time figuring it out :S
    • msd1994
      By msd1994
      I have a script that just adds some keyboard shortcuts for things like displaying the current song and artist, moving the window to the side so it won't pop up in my way, and play/pause, next song, previous song (these are the only 3 to still work since they don't need the window handle.)
      In some update recently, Spotify's window class swapped from "[CLASS:SpotifyMainWindow]" to "[CLASS:Chrome_WidgetWin_0]". Using the new class in my controls doesn't seem to work, I've tried getting the window handle from the process handle (_GetHwndFromPID($PID)) but that seems to fail as well.
      Does anybody have some idea of a way I could get this script working again?
       
      edit: seems like discord has the same window class name, so could be some issue with this? Still not sure of a way to solve the issue though, I added a function to get the handle of the active window and can just use that now, but it was able to find it on its own before on spotify startup or script startup which would be preferred.
       
      Thanks!
    • sumandevadiga
      By sumandevadiga
      Hello 
      I would like to Run Outlook macros from Autoit every 1 hour, below script unable to run macros.
      While 1 $Minute = Random(1,59,1) Do Sleep(1000) Until @Min = $Minute ; do whatever ; Since we want it to run randomly once an hour, we need to calculate how much time is left before the hour is up, and sleep that length of time. $s = ((60 - $Minute) * 60) * 1000 Sleep($s) $oOApp = ObjCreate("Outlook.Application") $oOApp.Run("SaveAttachments") ; Run Outlook Macros WEnd  
       
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.