Jump to content

UnCheck CheckBoxes...


Recommended Posts

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

Link to comment
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]

Link to comment
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

Link to comment
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?

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...