Jump to content

Checkboxes


Recommended Posts

Can anyone point me in the directon of reading the state of a check box.

I have 3 check boxes

I want to do some IF THEN routines to allow only one to be selected

If box a is selected then deselect boxes b and c

And then at the end I want to action the selected box

If box a is checked then do this

if box b is checked then do that

Cant see that in the help!

Link to comment
Share on other sites

Can anyone point me in the directon of reading the state of a check box.

I have 3 check boxes

I want to do some IF THEN routines to allow only one to be selected

If box a is selected then deselect boxes b and c

And then at the end I want to action the selected box

If box a is checked then do this

if box b is checked then do that

Cant see that in the help!

If BitAnd(GuiCtrlRead($A),$GUI_CHECKED) = $GUI_CHECKED Then
  ; do this
EndIf
If BitAnd(GuiCtrlRead($B),$GUI_CHECKED) = $GUI_CHECKED Then
  ; do that
EndIf

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

If BitAnd(GuiCtrlRead($A),$GUI_CHECKED) = $GUI_CHECKED Then
 ; do this
EndIf
If BitAnd(GuiCtrlRead($B),$GUI_CHECKED) = $GUI_CHECKED Then
 ; do that
EndIf

THANK YOU !

Thats out of my league, is there anything I can read in the help that will describe what you did!?

Link to comment
Share on other sites

Try this

#include <GUIConstants.au3>
;#NoTrayIcon

GUICreate("fun", 640, 480)

$mylist = GUICtrlCreateList("", 5, 165, 629, 165, BitOR($LBS_SORT, $WS_BORDER, $WS_VSCROLL, $LBS_NOTIFY))
GUIStartGroup()
$outlook = GUICtrlCreateRadio("Somebody works on this computer and it has Microsoft Outlook or Outlook Express e-Mail.", 5, 350)
$exchange = GUICtrlCreateRadio("This computer is an unattended Server and has Microsoft Exchange Installed.", 5, 368)
$nonms = GUICtrlCreateRadio("This computer is an unattended Server and has a non Microsoft e-Mail system installed.", 5, 386)


GUISetState()


While 1
   
   $msg = GUIGetMsg()
   
   Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case Else
        ;;;;;
   EndSelect
WEnd

GUIDelete()

Exit
Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Still scratching my head, if i reverse the order of the if ... then statements the problem goes upside down!

Okay radio button is better!

Do you offer advice on a paid for basis?

Whereby I could ask questions as I go through this project and pay for your time to answer them?

I feel like I should give something back really

Link to comment
Share on other sites

Okay radio button is better!

Do you offer advice on a paid for basis?

Whereby I could ask questions as I go through this project and pay for your time to answer them?

I feel like I should give something back really

All I ask is that once you've learned enough to help others on the forum to do so.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

All I ask is that once you've learned enough to help others on the forum to do so.

Is it possible with AutoIT to search all folders on a hard drive for *.tmp; *.bak and then put the folders it finds them in inside an array?

like $array contains

c:\windows\temp

c:\mydocu~1\nick\locals~1\temp

Or some other way maybe?

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...