Sign in to follow this  
Followers 0
krzy06gsxr

UnCheck CheckBoxes...

6 posts in this topic

Alright, I have been using AutoIt for a few days now. Absolutely love it! With that being said I am having some troubles.

I have been browsing the forum for some fixes and have seen many. However I cannot get any to work.

I noticed that "ControlCommand" was one mentioned. Another one was "GUICtrlSetState". Neither of these are working for my current problem.

I am attempting to determine if a check box is check within the performance settings in windows. If it is depending on which number it is "1 - 16 or 0 - 15 in windows xp" For example, if it is the first one "Animate windows when minimizing and maximizing" is enable I would like to disable it. How ever if it is disable I would like to keep it that way.

Now I know I can use the simple "{SPACE}" how ever that is not the resolution I am looking for.

I am open to all suggestions. I am not attempting to make some big graphical tool.

Thanks in advanced.

Joe

Share this post


Link to post
Share on other sites



Have you considered looking in the registry for the setting?


[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites

Have you considered looking in the registry for the setting?

Ive looked long and hard... Cant figure out where the actual setting is that stores this type of information...

Share this post


Link to post
Share on other sites

#include <GUITreeView.au3>

Run('control sysdm.cpl,,3')
WinWaitActive('System Properties')
ControlClick('System Properties', '', 'Button2')
WinWaitActive('Performance Options')
$hSysTreeView = ControlGetHandle('Performance Options', '', 'SysTreeView321')

$hItem = _GUICtrlTreeView_GetFirstItem($hSysTreeView)

Do
    ; _GUICtrlTreeView_GetChecked
    ConsoleWrite(_GUICtrlTreeView_GetText($hSysTreeView, $hItem) & @LF)
    $hItem = _GUICtrlTreeView_GetNext($hSysTreeView, $hItem)
Until Not $hItem

Share this post


Link to post
Share on other sites

Authenticity,

This looks like this is going to work...

Now in this example, when I ran it, it did nothing... Also I tried searching the Help file for the syntax... Was unsuccessful... Can you use this include to edit the status of the current item?

Share this post


Link to post
Share on other sites

I found the section in the help, thanks for pointing me in the right direction! I will post again when I fully resolve my issue.

THanks again

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  
Followers 0